resources - How do I reference elements from other resouces? -
i working on xml using fhir resource. found element of resource cross reference other resources.
e.g. in encounter (resource), element :serviceprovider cross reference resource(organization).
in such case, there way specify elements of resource(organization) on encounter (resource) xml such can validated correctly?
i think you're asking is: can constrain information care have captured organization associated encounter (as opposed organization communicated in other manner or context). example, encounter, might want name , phone number while in other contexts may want other information.
if that's indeed you're looking for,, solution profile. create profile on encounter and, serviceprovider reference organization, on "type" element, in addition "code" element indicating "organization", you'd specify "profile" element pointing structure wanted enforced on content of organization. structure might defined in same profile or in separate one.
(note best practice enforce elements must present not prevent unneeded elements being present doing reduces interoperability.)
Comments
Post a Comment