Stream: implementers
Topic: Validation with different valuesets
Greg A (Mar 30 2021 at 12:24):
Trying to get my head around Validation. I've experimented with some different approaches including implementing my own IValidationModule.
Now.. I'm looking into just replacing a ValueSet with a new ValueSet. I'm thinking that I need to understand two different approaches. One, to use my own ValueSet and the other to just use an different published ValueSet (ie., administrative-identity -> gender-identify for Patient.Gender)
So far, I've copied profiles.resources.xml onto my classpath and modified is so that gender-identity is specified instead of administrative-gender. But that doesn't seem to change anything in the behavior of the validation.
Can anyone help point me in the right direction?
Lloyd McKenzie (Mar 30 2021 at 14:11):
You can't change a 'required' binding to use a different set of codes and still be conformant - the most you can do is point to a value set that uses a smaller set of the same codes. Details on rules for constraining value sets are here: https://build.fhir.org/profiling.html#binding-strength
"Gender identity" needs to be sent in a completely separate element - traditionally as an Observation, though an extension is also possible.
Last updated: Apr 12 2022 at 19:14 UTC