{
  "resourceType": "StructureDefinition",
  "id": "ei-observation",
  "meta": {
    "lastUpdated": "2017-09-21T06:17:34.289+00:00"
  },
  "url": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-observation",
  "name": "Enterprise Imaging Observation",
  "status": "draft",
  "date": "2017-09-13T08:28:56.301+00:00",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "agfa-ei-model",
      "name": "Enterprise Imaging Data Model"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.identifier.use",
        "path": "Observation.identifier.use",
        "max": "0"
      },
      {
        "id": "Observation.identifier.type",
        "path": "Observation.identifier.type",
        "max": "0"
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REPORT_RESULT#REPORT_UID + \"_\" + REPORT_SECTION#SEQUENCE"
          }
        ]
      },
      {
        "id": "Observation.identifier.period",
        "path": "Observation.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.identifier.assigner",
        "path": "Observation.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-procedurerequest"
          }
        ]
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REQUESTED_PROCEDURE#STUDY_UID"
          }
        ]
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/eipatient"
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-practitioner"
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "type": [
          {
            "code": "Quantity"
          },
          {
            "code": "string"
          },
          {
            "code": "Attachment"
          }
        ],
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REPORT_TEXT#CONTENT_BLOB"
          }
        ]
      },
      {
        "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.related",
        "path": "Observation.related",
        "max": "0"
      }
    ]
  }
}