{
  "resourceType": "StructureDefinition",
  "url": "http://hl7.org/fhir/MicrobiologyLaboratory/StructureDefinition/MicrobiologyLaboratoryPatient",
  "version": "4.0.1",
  "name": "MicrobiologyLaboratoryPatient",
  "status": "draft",
  "date": "2020-11-20",
  "publisher": "BlackTusk GmbH",
  "contact": [
    {
      "name": "Maximilian Ossana",
      "telecom": [
        {
          "system": "url",
          "value": "http://blacktusk.eu"
        }
      ]
    }
  ],
  "description": "Patient-Profile for depicting the \"ELGA-CDA Mikrobiologischer Laborbefund\" in FHIR",
  "useContext": [
    {
      "code": {
        "system": "http://terminology.hl7.org/CodeSystem/usage-context-type",
        "version": "4.0.1",
        "code": "venue"
      },
      "valueCodeableConcept": {
        "text": "for ELGA-CDA Usage"
      }
    }
  ],
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "de-AT"
        }
      ]
    }
  ],
  "purpose": "To help implementers map from ELGA-CDA to FHIR",
  "copyright": "Creative Commons 0",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.at/fhir/HL7ATCoreProfiles/4.0.1/StructureDefinition/austrian-patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-birthPlace"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:birthPlace.value[x].line",
        "path": "Patient.extension.value[x].line",
        "requirements": "streetName und houseNumber müssen angegeben werden (EIS Full support - CDA Level 3)",
        "min": 1
      },
      {
        "id": "Patient.extension:birthPlace.value[x].city",
        "path": "Patient.extension.value[x].city",
        "requirements": "vorgeschrieben in ELGA-CDA",
        "min": 1
      },
      {
        "id": "Patient.extension:birthPlace.value[x].postalCode",
        "path": "Patient.extension.value[x].postalCode",
        "requirements": "vorgeschrieben in ELGA-CDA",
        "min": 1
      },
      {
        "id": "Patient.extension:birthPlace.value[x].country",
        "path": "Patient.extension.value[x].country",
        "requirements": "vorgeschrieben in ELGA-CDA",
        "min": 1
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "comment": "identifier[1] - Identifikation des Patienten im lokalen System\r\nidentifier[2] - Sozialversicherungsnummer des Patienten",
        "min": 2
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "requirements": "Need to be able to track the patient by multiple names. Examples are your official name and a partner name.\r\nlt. ELGA-CDA Template recordTarget nur ein einziger Name erlaubt.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "requirements": "vorgeschrieben von ELGA-CDA, falls mehr als ein Nachname benötigt wird -> humanname-own-name oder humanname-partner-name Extensions",
        "min": 1
      },
      {
        "id": "Patient.name.family.extension",
        "path": "Patient.name.family.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.name.family.extension:ownName",
        "path": "Patient.name.family.extension",
        "sliceName": "ownName",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/humanname-own-name"
            ]
          }
        ]
      },
      {
        "id": "Patient.name.family.extension:partnerName",
        "path": "Patient.name.family.extension",
        "sliceName": "partnerName",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/humanname-partner-name"
            ]
          }
        ]
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "requirements": "vorgeschrieben von ELGA_CDA",
        "min": 1
      },
      {
        "id": "Patient.telecom.value",
        "path": "Patient.telecom.value",
        "requirements": "Need to support legacy numbers that are not in a tightly controlled format, vorgeschrieben von ELGA-CDA.",
        "min": 1
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date.\r\nVorgeschrieben von ELGA-CDA",
        "min": 1
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "requirements": "Age of the individual drives many clinical processes.\r\nVorgeschrieben von ELGA-CDA.",
        "min": 1
      },
      {
        "id": "Patient.birthDate.extension",
        "path": "Patient.birthDate.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.birthDate.extension:birthTime",
        "path": "Patient.birthDate.extension",
        "sliceName": "birthTime",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-birthTime"
            ]
          }
        ]
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "requirements": "streetName und houseNumber müssen angegeben werden (EIS full support - CDA Level 3)",
        "min": 1
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "requirements": "vorgeschrieben in ELGA-CDA",
        "min": 1
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "requirements": "vorgeschrieben in ELGA-CDA",
        "min": 1
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "requirements": "vorgeschrieben in ELGA-CDA",
        "min": 1
      }
    ]
  }
}