{
  "resourceType": "StructureDefinition",
  "id": "fa7ce56a-2039-4684-b747-45df1e250df5",
  "meta": {
    "lastUpdated": "2021-04-08T16:23:45.851+00:00"
  },
  "url": "http://pbme.solutions/fhir/StructureDefinition/PBMObservation",
  "name": "PBMObservation",
  "status": "draft",
  "date": "2021-04-06T07:51:07.657224+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.identifier.system",
        "path": "Observation.identifier.system",
        "definition": "Identifier.system is always case sensitive.\r\n\r\nFor PBMe.Solutions, it shall be consistent in this format: \r\nhttp://pbme.solutions/[locaHospitalName]/fhir/",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "definition": "The status of the result value.\r\nregistered | preliminary | final | amended +",
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "definition": "718-7 Hemoglobin [Mass/volume] in Blood g/dL\r\n59260-0 Hemoglobin [Moles/volume] in Blood mmol/L",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "mustSupport": true
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "comment": "To be able to allow delta changes etc. use PUT for transfer an use references like this:\r\n\r\n\"Patient?identifier=localHospitalName|patientID\"",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.encounter.reference",
        "path": "Observation.encounter.reference",
        "comment": "To be able to allow delta changes etc. use PUT for transfer an use references like this:\r\n\r\n\"Encounter?identifier=localHospitalName|encounterID\"",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].value",
        "path": "Observation.value[x].value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].unit",
        "path": "Observation.value[x].unit",
        "definition": "either use \"g/dl\" or \"mmol/l\" depending on code.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].system",
        "path": "Observation.value[x].system",
        "fixedUri": "http://unitsofmeasure.org",
        "mustSupport": true
      }
    ]
  }
}