-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Configurable "Special Character" to allow JSON fieldnames beginning with underscore "_" #4907
Labels
Comments
The restriction only applies at the top-level, so if it's possible to put your FHIR object in a subobject you'll be fine. Unfortunately it will not be possible to make this configurable for a bunch of reason, not least replication compatibility but also security aspects. The underscore prefix in couchdb is well-established and used for a variety of features. |
hello robertwow ! thank you for answering immediately. in between i was out for run and ordered my thaughtsi have no control overat what level the field is set. but i see at least two nice solutions1. wrap it in a persistance-metastructure and send those candidates one level down.2. write an adapter to replace the underscore against something else for persistence and vice versa as the problem only can hapen in im / export usecaseskindly regardsmarcoAm 09.12.2023 19:24 schrieb Robert Newson ***@***.***>:
The restriction only applies at the top-level, so if it's possible to put your FHIR object in a subobject you'll be fine.
Unfortunately it will not be possible to make this configurable for a bunch of reason, not least replication compatibility but also security aspects. The underscore prefix in couchdb is well-established and used for a variety of features.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Closing this, because a workaround was given. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
The usage of the underscore character as a prefix for system fields to makes it impossible to store native JSON-Fhir Documents in CouchDb.
In FHIR someone decided to use the "_" as a prefix for field-extensions.
Desired Behaviour
It should be possible to store any valid JSON Object in CouchDb
Possible Solution
Configurable "Special Character(s)" to allow JSON fieldnames beginning with underscore "_" .
So each user can decide what chars to avoid in it's datadefinitions.
Or perhaps a kind of internal masking for such keys
Additional context
It would be great to store JSON-Fhir objects natively in CouchDb because I think it could be the coolest thinkable storage engine for it
The text was updated successfully, but these errors were encountered: