-
Notifications
You must be signed in to change notification settings - Fork 18
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
Preserve Value Order of Multi-Valued Elements #15
Comments
Currently for HumanName.given we make it cardinality 1 and use a ascii null as a separator. Then we split and join as it gets to the edge of the database. |
In R4 there are only 5 data elements with an
I expected more. Do I miss some? So we have only two cases, string typed elements and the FHIR discourages one from using the null char in strings:
So the use of the null char as separator is a valid idea. Using tuples with order and value might be a good fit for Independent of |
Thread in #implementers is here. |
you can do an :order attribute if the type was a :db.type/ref like bundle |
Is solved by switching to RocksDB. |
In JSON multi-values elements are represented by lists. That lists have an order. In Datomic multi-values elements are sets. We have to create our own list implementation here to revere order. Also keep an eye on performance.
For most data elements the order of its values has no meaning. Only in case ElementDefinition.orderMeaning is present, the order has a meaning. So we might mostly ok with not preserving the order. But for example HumanName.given has an
orderMeaning
.The text was updated successfully, but these errors were encountered: