{
  "resourceType": "StructureDefinition",
  "url": "https://aicentre.co.uk/flip/Observation",
  "name": "FLIPObservation",
  "status": "draft",
  "date": "2022-11-24T17:43:46.9696719+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "max": "0"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.basedOn.reference",
        "path": "Observation.basedOn.reference",
        "min": 1
      },
      {
        "id": "Observation.basedOn.type",
        "path": "Observation.basedOn.type",
        "min": 1
      },
      {
        "id": "Observation.basedOn.identifier",
        "path": "Observation.basedOn.identifier",
        "max": "0"
      },
      {
        "id": "Observation.basedOn.display",
        "path": "Observation.basedOn.display",
        "max": "0"
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "short": "final",
        "fixedCode": "final"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "https://aicentre.co.uk/flip/PACS-LOCAL"
      },
      {
        "id": "Observation.code.coding.version",
        "path": "Observation.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1,
        "mapping": [
          {
            "identity": "TFLIP.SQL",
            "map": "ires_procedurecode"
          },
          {
            "identity": "TFLIP.HL7",
            "map": "OBR:4"
          }
        ]
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "min": 1,
        "mapping": [
          {
            "identity": "TFLIP.SQL",
            "map": "ires_procedurename"
          },
          {
            "identity": "TFLIP.HL7",
            "map": "OBR:4"
          }
        ]
      },
      {
        "id": "Observation.code.coding.userSelected",
        "path": "Observation.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.code.text",
        "path": "Observation.code.text",
        "max": "0"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "max": "0"
      },
      {
        "id": "Observation.subject.type",
        "path": "Observation.subject.type",
        "max": "0"
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "max": "0"
      },
      {
        "id": "Observation.subject.display",
        "path": "Observation.subject.display",
        "max": "0"
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "max": "0"
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "max": "0"
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "TFLIP.SQL",
            "map": "ires_obsdttm"
          },
          {
            "identity": "TFLIP.HL7",
            "map": "OBX:14"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "max": "0"
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "max": "0"
      },
      {
        "id": "Observation.performer.reference",
        "path": "Observation.performer.reference",
        "max": "0"
      },
      {
        "id": "Observation.performer.type",
        "path": "Observation.performer.type",
        "max": "0"
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "min": 1
      },
      {
        "id": "Observation.performer.identifier.use",
        "path": "Observation.performer.identifier.use",
        "max": "0"
      },
      {
        "id": "Observation.performer.identifier.type",
        "path": "Observation.performer.identifier.type",
        "max": "0"
      },
      {
        "id": "Observation.performer.identifier.system",
        "path": "Observation.performer.identifier.system",
        "min": 1
      },
      {
        "id": "Observation.performer.identifier.value",
        "path": "Observation.performer.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.performer.identifier.period",
        "path": "Observation.performer.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.performer.identifier.assigner",
        "path": "Observation.performer.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "TFLIP.SQL",
            "map": "ires_obsvalue"
          },
          {
            "identity": "TFLIP.HL7",
            "map": "OBX:5"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1
      },
      {
        "id": "Observation.component.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange"
      }
    ]
  }
}