{
  "resourceType": "StructureDefinition",
  "id": "Condition",
  "meta": {
    "lastUpdated": "2021-03-23T10:07:29.887+00:00"
  },
  "url": "http://dedalus-group.com/fhir/StructureDefinition/Condition",
  "name": "Condition",
  "status": "draft",
  "date": "2021-03-23T10:06:44.0583393+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": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.language",
        "path": "Condition.language",
        "max": "0"
      },
      {
        "id": "Condition.contained",
        "path": "Condition.contained",
        "max": "0"
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-20"
          }
        ]
      },
      {
        "id": "Condition.identifier.use",
        "path": "Condition.identifier.use",
        "max": "0"
      },
      {
        "id": "Condition.identifier.type",
        "path": "Condition.identifier.type",
        "max": "0"
      },
      {
        "id": "Condition.identifier.value",
        "path": "Condition.identifier.value",
        "min": 1,
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-20"
          }
        ]
      },
      {
        "id": "Condition.identifier.period",
        "path": "Condition.identifier.period",
        "max": "0"
      },
      {
        "id": "Condition.identifier.assigner",
        "path": "Condition.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Condition.clinicalStatus.coding.system",
        "path": "Condition.clinicalStatus.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/condition-clinical"
      },
      {
        "id": "Condition.clinicalStatus.coding.code",
        "path": "Condition.clinicalStatus.coding.code",
        "min": 1
      },
      {
        "id": "Condition.verificationStatus.coding.system",
        "path": "Condition.verificationStatus.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/condition-ver-status"
      },
      {
        "id": "Condition.verificationStatus.coding.code",
        "path": "Condition.verificationStatus.coding.code",
        "min": 1
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "max": "0"
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "max": "0"
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-3"
          }
        ]
      },
      {
        "id": "Condition.code.coding.system",
        "path": "Condition.code.coding.system",
        "min": 1
      },
      {
        "id": "Condition.code.coding.code",
        "path": "Condition.code.coding.code",
        "min": 1
      },
      {
        "id": "Condition.code:icd10-gm",
        "path": "Condition.code",
        "sliceName": "icd10-gm",
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-3"
          }
        ]
      },
      {
        "id": "Condition.code:icd10-gm.coding.system",
        "path": "Condition.code.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.de/CodeSystem/dimdi/icd-10-gm",
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-3.3"
          }
        ]
      },
      {
        "id": "Condition.code:icd10-gm.coding.version",
        "path": "Condition.code.coding.version",
        "min": 1,
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-3.3"
          }
        ]
      },
      {
        "id": "Condition.code:icd10-gm.coding.code",
        "path": "Condition.code.coding.code",
        "min": 1,
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-3.1"
          }
        ]
      },
      {
        "id": "Condition.code:icd10-gm.coding.display",
        "path": "Condition.code.coding.display",
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-4, if empty DG1-3.2",
            "comment": "Fallback in DG1-3.2"
          }
        ]
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "max": "0"
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.subject.reference",
        "path": "Condition.subject.reference",
        "min": 1,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3.1",
            "comment": "Reference to Patient ressource"
          }
        ]
      },
      {
        "id": "Condition.subject.type",
        "path": "Condition.subject.type",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier",
        "path": "Condition.subject.identifier",
        "max": "0"
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Encounter"
            ]
          }
        ]
      },
      {
        "id": "Condition.encounter.reference",
        "path": "Condition.encounter.reference",
        "min": 1,
        "mapping": [
          {
            "identity": "v2",
            "map": "PV1-19.1",
            "comment": "Reference to Encounter ressource"
          }
        ]
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "max": "0",
        "mustSupport": false
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "max": "0",
        "mustSupport": false
      },
      {
        "id": "Condition.recordedDate",
        "path": "Condition.recordedDate",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-19"
          }
        ]
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Practitioner",
              "http://dedalus-group.com/fhir/StructureDefinition/Patient",
              "http://dedalus-group.com/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "Condition.recorder.reference",
        "path": "Condition.recorder.reference",
        "min": 1,
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-16"
          }
        ]
      },
      {
        "id": "Condition.recorder.type",
        "path": "Condition.recorder.type",
        "max": "0"
      },
      {
        "id": "Condition.recorder.identifier",
        "path": "Condition.recorder.identifier",
        "max": "0"
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Practitioner",
              "http://dedalus-group.com/fhir/StructureDefinition/Patient",
              "http://dedalus-group.com/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "Condition.asserter.reference",
        "path": "Condition.asserter.reference",
        "min": 1,
        "mapping": [
          {
            "identity": "v2",
            "map": "DG1-16"
          }
        ]
      },
      {
        "id": "Condition.asserter.type",
        "path": "Condition.asserter.type",
        "max": "0"
      },
      {
        "id": "Condition.asserter.identifier",
        "path": "Condition.asserter.identifier",
        "max": "0"
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "max": "0"
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "max": "0"
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "max": "0"
      }
    ]
  }
}