Stream: implementers
Topic: RE: Profile Constraint on References
Eric Haas (Jun 19 2020 at 20:44):
@Brett Marquard and I need clarification on constraints on references. If a profile defines one type for a reference ( for example DocumentReference with subject.reference
= Patient), then are other types still valid in an instance (for example subject.reference
= Group ). Currently the validator allows it but the Snapshot in the IG will only show the profiled types.
Eric Haas (Jun 19 2020 at 22:44):
when I read this:
http://hl7.org/fhir/elementdefinition-definitions.html#ElementDefinition.type.profile:
...If any profiles are specified, then the content must conform to at least one of them....
Seems to suggest can only use the types enumerated in the Profile.
Grahame Grieve (Jun 20 2020 at 03:50):
Sounds like the validator is wrong. Can you make up a test case? (instance + profile)
Eric Haas (Jun 22 2020 at 21:40):
Is there a specific format for test data or just an instance like here:
https://gist.github.com/Healthedata1/738c837366942c74edb2b782e8049629
Grahame Grieve (Jun 23 2020 at 21:52):
well, that'll do
Grahame Grieve (Jun 25 2020 at 02:42):
@Eric Haas ok I got to the bottom of this - you need to use the assumeValidRestReferences
parameter
Eric Haas (Jun 25 2020 at 14:43):
thanks...
Last updated: Apr 12 2022 at 19:14 UTC