fhircat / FHIRCat

Enabling the Semantics of FHIR and Terminologies for Clinical and Translational Research
5 stars 0 forks source link

Patient gender doesn't reference a context #28

Closed hsolbrig closed 4 years ago

hsolbrig commented 4 years ago

The gender attribute in https://fhircat.org/fhir/contexts/r5/patient.context.jsonld is untyped.

  "gender": {
      "@id": "fhir:Patient.gender"
    },

While it is probably overkill to add a context for R4 string values, we still need to map the value tag and extension:

  "gender": {
       "@id": "fhir:Patient.gender",
      "extension": {
           "@id": "fhir:Element.extension",
           "@context": "extension.context.jsonld"
       },
       "value": {
           "@id": "fhir:value"
      },

(Alternative is to have a string.context.jsonld)

cendle commented 4 years ago

Added "@context": "string.context.jsonld" for object that didn't previously have a context and their type was "code"