-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespace human readable references by entity type #630
Labels
Comments
I'll take this one. |
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Sep 28, 2016
This commit creates a table that contains a mapping between entity uuids and their human readable text. All updates to this table are made via triggers, leaving the controller code on both the server and the client the same. The entities are: 1. Suppliers 2. Employees 3. Patients NOTE that entities are both creditors and debtors. Another table will be made for documents (vouchers, invoices, payments, etc). I've moved all triggers into triggers.sql. Closes IMA-WorldHealth#753. Closes IMA-WorldHealth#629. Partially addresses IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Sep 28, 2016
This commit makes the rest of the UUIDs for records and references in the journal readable. Closes IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Sep 28, 2016
This commit creates a table that contains a mapping between entity uuids and their human readable text. All updates to this table are made via triggers, leaving the controller code on both the server and the client the same. The entities are: 1. Suppliers 2. Employees 3. Patients NOTE that entities are both creditors and debtors. Another table will be made for documents (vouchers, invoices, payments, etc). I've moved all triggers into triggers.sql. Closes IMA-WorldHealth#753. Closes IMA-WorldHealth#629. Partially addresses IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Sep 28, 2016
This commit makes the rest of the UUIDs for records and references in the journal readable. Closes IMA-WorldHealth#630.
4 tasks
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Sep 30, 2016
This commit creates a table that contains a mapping between entity uuids and their human readable text. All updates to this table are made via triggers, leaving the controller code on both the server and the client the same. The entities are: 1. Suppliers 2. Employees 3. Patients NOTE that entities are both creditors and debtors. Another table will be made for documents (vouchers, invoices, payments, etc). I've moved all triggers into triggers.sql. Closes IMA-WorldHealth#753. Closes IMA-WorldHealth#629. Partially addresses IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Sep 30, 2016
This commit makes the rest of the UUIDs for records and references in the journal readable. Closes IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Oct 1, 2016
This commit creates a table that contains a mapping between entity uuids and their human readable text. All updates to this table are made via triggers, leaving the controller code on both the server and the client the same. The entities are: 1. Suppliers 2. Employees 3. Patients NOTE that entities are both creditors and debtors. Another table will be made for documents (vouchers, invoices, payments, etc). I've moved all triggers into triggers.sql. Closes IMA-WorldHealth#753. Closes IMA-WorldHealth#629. Partially addresses IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Oct 1, 2016
This commit makes the rest of the UUIDs for records and references in the journal readable. Closes IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Oct 4, 2016
This commit creates a table that contains a mapping between entity uuids and their human readable text. All updates to this table are made via triggers, leaving the controller code on both the server and the client the same. The entities are: 1. Suppliers 2. Employees 3. Patients NOTE that entities are both creditors and debtors. Another table will be made for documents (vouchers, invoices, payments, etc). I've moved all triggers into triggers.sql. Closes IMA-WorldHealth#753. Closes IMA-WorldHealth#629. Partially addresses IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Oct 4, 2016
This commit makes the rest of the UUIDs for records and references in the journal readable. Closes IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Oct 5, 2016
This commit creates a table that contains a mapping between entity uuids and their human readable text. All updates to this table are made via triggers, leaving the controller code on both the server and the client the same. The entities are: 1. Suppliers 2. Employees 3. Patients NOTE that entities are both creditors and debtors. Another table will be made for documents (vouchers, invoices, payments, etc). I've moved all triggers into triggers.sql. Closes IMA-WorldHealth#753. Closes IMA-WorldHealth#629. Partially addresses IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Oct 5, 2016
This commit makes the rest of the UUIDs for records and references in the journal readable. Closes IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Oct 6, 2016
This commit creates a table that contains a mapping between entity uuids and their human readable text. All updates to this table are made via triggers, leaving the controller code on both the server and the client the same. The entities are: 1. Suppliers 2. Employees 3. Patients NOTE that entities are both creditors and debtors. Another table will be made for documents (vouchers, invoices, payments, etc). I've moved all triggers into triggers.sql. Closes IMA-WorldHealth#753. Closes IMA-WorldHealth#629. Partially addresses IMA-WorldHealth#630.
jniles
pushed a commit
to jniles/bhima
that referenced
this issue
Oct 6, 2016
This commit makes the rest of the UUIDs for records and references in the journal readable. Closes IMA-WorldHealth#630.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The human-readable IDs of 1.x were highly useful for distinguishing entities of the same type, but did not carry much information to separate entities of different types. For example, an employee might have an employee reference
TPA3
, while a different patient might also have a patient referenceTPA3
.I propose that we add a single letter prefix to the reference, the entity type. Some examples are shown below:
patient
-PTPA2445
,PTPA3234
. The leadingP
is for patient.employee
-ETPA1
,ETPB345
. The leadingE
is for an employee.supplier
-CTPA343
,CTPC999
. The leadingC
is for creditor/supplier.cash
- ?ZTPA1245
,ZTPA5
. The leadingZ
is for the cash payment. If someone has a better idea, please comment!invoice
-ITPA31
,IPTC8
. The leadingI
is for invoice.voucher
-VTPA2
,VTPB72
. The leadingV
is for voucher.Since we control the rendering of the human readable ID, we can make these any format we desire to try and make it more readable. The proposal above is the standard proposal. However, other formats might be:
V.TPA.2
- separation with periodsI-TPB-941
- separation with dashesThe text was updated successfully, but these errors were encountered: