w3c / hcls-fhir-rdf

Sketching out an RDF representation for FHIR
39 stars 15 forks source link

Extensions on primitives are not working in the Playground -- Underscore property #113

Open dbooth-boston opened 1 year ago

dbooth-boston commented 1 year ago

In FHIR JSON, primitives are extended by prepending an underscore to the property name, and attaching the extension to that. For example:

  "birthDate": "1974-12-25",
  "_birthDate": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime",
        "valueDateTime": "1974-12-25T14:35:45-05:00"
      }
    ]
  },

But _birthDate is not recognized in the Playground. See example.