Often, within a FHIR resource, there are references to other resources within.
An example would be the ‘managingOrganization’ of a Patient.
On the FHIR site, we see (when using JSON) :
“managingOrganization”: { Reference(Organization) }
Which, to my understanding, we should always see a nested object, looking along the lines of:
{
“reference”: “string reference”,
“type”: “uri”,
“identifier”: { An Identifier Object },
“display”: "A display string
}
or – put simply, in one of the Patient examples, we see something like:
“managingOrganization”: {
“reference”: “Organization/1”
}
I have seen FHIR references constructed as what seems to be a nested resource, rather than a “reference”.
An example of this as a “managingOrganization”:
“managingOrganization”: {
“id”: “a-unique-identifier”,
“identifier”: [{
“use”: “official”,
“type”: {
“coding”: [{
“system”: “http://link/to/system”,
“code”: “CODE”
}],
“text”: “EHR Facility”
}
}],
“active”: true,
“name”: “EHR Facility”,
“resourceType”: “Organization”
}
This does not seem valid to me, as it does not follow the ‘reference’ schema I detailed above, but I want to verify that I have not missed anything in the ‘reference’ section of the FHIR page.