{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2024-04-19T13:20:07.805+00:00"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ObservationValueQuantity",
  "name": "ObservationValueQuantity",
  "status": "draft",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "olis-hl7-v2",
      "name": "OLIS HL7 V2 Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Quantity",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Quantity",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Quantity.value",
        "path": "Quantity.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "olis-hl7-v2",
            "map": "Quantity.value",
            "comment": "if OBX.2 = NM or SN"
          }
        ]
      },
      {
        "id": "Quantity.comparator",
        "path": "Quantity.comparator",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "olis-hl7-v2",
            "map": "OBX.5 (if OBX.2 = SN)",
            "comment": "may be \">\", \">=\", \"<\", \"<=\". If \"=\" is used, skip comparator"
          }
        ]
      },
      {
        "id": "Quantity.unit",
        "path": "Quantity.unit",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "olis-hl7-v2",
            "map": "OBX.6",
            "comment": "Only applies if OBX.2 = NM or SN"
          }
        ]
      }
    ]
  }
}