fhircat / fhir-rdf-playground

JSON for Linked Data
https://json-ld.org/
Other
0 stars 4 forks source link

id:"Base" not present in 4.0.1 #10

Open ericprud opened 2 years ago

ericprud commented 2 years ago

Base is the (a?) top-level abstract StructureDefinition from which all Resources are derived. There's a declaration for it in 4.6, but not in 4.0.

for d in FHIR-definitions-{4.0.1,4.6.0-2da64a0}; do
    for p in profiles-{resources,types}.json; do
        jq --arg FILE $d/$p '
          .entry[].resource |
          select(.id=="base" or .id=="Base") |
          [$FILE, .id, .resourceType] |
          join(" -- ")
        ' $d/$p ;
    done ;
done
"FHIR-definitions-4.0.1/profiles-resources.json -- base -- CapabilityStatement"
"FHIR-definitions-4.6.0-2da64a0/profiles-resources.json -- base -- CapabilityStatement"
"FHIR-definitions-4.6.0-2da64a0/profiles-types.json -- Base -- StructureDefinition"

Note that base(all lower case) is a CapabilityStatement, not a StructureDefinition.