{
  "resourceType": "StructureDefinition",
  "id": "ei-diagnostic-report",
  "meta": {
    "lastUpdated": "2017-09-25T09:42:53.792+00:00"
  },
  "url": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-diagnostic-report",
  "name": "Enterprise Imaging Diagnostic Report",
  "status": "draft",
  "date": "2017-09-13T07:28:27.73+00:00",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "agfa-ei-model",
      "name": "Enterprise Imaging Data Model"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.identifier.type",
        "path": "DiagnosticReport.identifier.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.system",
        "path": "DiagnosticReport.identifier.system",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "urn:ei:report-uid"
          },
          {
            "identity": "agfa-ei-model",
            "map": "urn:ei:report-code"
          }
        ]
      },
      {
        "id": "DiagnosticReport.identifier.value",
        "path": "DiagnosticReport.identifier.value",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REPORT_RESULT#REPORT_UID"
          },
          {
            "identity": "agfa-ei-model",
            "map": "REPORT_RESULT#REPORT_CODE"
          }
        ]
      },
      {
        "id": "DiagnosticReport.identifier.period",
        "path": "DiagnosticReport.identifier.period",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.assigner",
        "path": "DiagnosticReport.identifier.assigner",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          },
          {
            "code": "Reference",
            "profile": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-procedurerequest"
          }
        ]
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REPORT_RESULT#STATUS"
          }
        ]
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REQUESTED_PROCEDURE#STUDY_UID"
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/eipatient"
          }
        ],
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "PATIENT"
          }
        ]
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REPORT_RESULT#MODIFICATION"
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer.actor",
        "path": "DiagnosticReport.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-practitioner"
          }
        ],
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REPORT_PARTICIPATION"
          }
        ]
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "code": "Reference",
            "profile": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-observation"
          },
          {
            "code": "Reference",
            "targetProfile": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-observation"
          }
        ]
      },
      {
        "id": "DiagnosticReport.codedDiagnosis",
        "path": "DiagnosticReport.codedDiagnosis",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REPORT_RESULT#REPORT_BLOB"
          }
        ]
      }
    ]
  }
}