{
  "resourceType": "StructureDefinition",
  "id": "6182c333-3eb7-4299-b17f-6b62772168b6",
  "meta": {
    "lastUpdated": "2019-02-08T10:06:46.535+00:00"
  },
  "url": "http://medico-emr.net/stu3/sd/Condition-Infection-1",
  "name": "Condition-Infection-1",
  "status": "draft",
  "date": "2019-02-08T10:06:46.3465465+00:00",
  "description": "A description for an infection. This infection profile is provided by medico - using patient or case attributes (\"Patientenmerkmale\") - where \"code\" is at most provided through a string in code\r\nDepending on how that attribute is stored - i.e. by case or by patient - that involves using different prefixes (for id) or namespaces (for identifiers) -so these fields are sliced accordlingly.",
  "purpose": "Access: Read",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.id",
        "path": "Condition.id",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "id"
            }
          ],
          "rules": "open"
        },
        "definition": "medico: Format: Infection-####",
        "min": 1
      },
      {
        "id": "Condition.id:InfectionByCase",
        "path": "Condition.id",
        "sliceName": "InfectionByCase"
      },
      {
        "id": "Condition.id:InfectionByCase.id",
        "path": "Condition.id.id",
        "definition": "Format: InfectionByCase-####\r\nMeans that the infection information is stored using the encounter of type case"
      },
      {
        "id": "Condition.id:InfectionByPatient",
        "path": "Condition.id",
        "sliceName": "InfectionByPatient"
      },
      {
        "id": "Condition.id:InfectionByPatient.id",
        "path": "Condition.id.id",
        "definition": "Format: InfectionByPatient-####\r\nMeans that the infection information is stored using the patient"
      },
      {
        "id": "Condition.meta",
        "path": "Condition.meta",
        "min": 1
      },
      {
        "id": "Condition.meta.id",
        "path": "Condition.meta.id",
        "max": "0"
      },
      {
        "id": "Condition.meta.versionId",
        "path": "Condition.meta.versionId",
        "max": "0"
      },
      {
        "id": "Condition.meta.lastUpdated",
        "path": "Condition.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Condition.meta.profile",
        "path": "Condition.meta.profile",
        "min": 1,
        "max": "1",
        "fixedUri": "http://medico-emr.net/stu3/sd/Condition-Infection-1"
      },
      {
        "id": "Condition.meta.profile.id",
        "path": "Condition.meta.profile.id",
        "max": "0"
      },
      {
        "id": "Condition.meta.security",
        "path": "Condition.meta.security",
        "max": "0"
      },
      {
        "id": "Condition.meta.tag",
        "path": "Condition.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        },
        "max": "1"
      },
      {
        "id": "Condition.meta.tag:medicoSourceRelation",
        "path": "Condition.meta.tag",
        "sliceName": "medicoSourceRelation",
        "max": "1",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Tags"
            }
          ],
          "strength": "preferred",
          "description": "defines the relationship to a medico source",
          "valueSetReference": {
            "reference": "http://medico-emr.net/stu3/vs/MedicoSource-Relation-1"
          }
        }
      },
      {
        "id": "Condition.meta.tag:medicoSourceRelation.id",
        "path": "Condition.meta.tag.id",
        "max": "0"
      },
      {
        "id": "Condition.meta.tag:medicoSourceRelation.system",
        "path": "Condition.meta.tag.system",
        "min": 1,
        "fixedUri": "http://medico-emr.net/cs1"
      },
      {
        "id": "Condition.meta.tag:medicoSourceRelation.version",
        "path": "Condition.meta.tag.version",
        "max": "0"
      },
      {
        "id": "Condition.meta.tag:medicoSourceRelation.code",
        "path": "Condition.meta.tag.code",
        "min": 1
      },
      {
        "id": "Condition.meta.tag:medicoSourceRelation.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.meta.tag.display",
        "max": "0"
      },
      {
        "id": "Condition.meta.tag:medicoSourceRelation.userSelected",
        "path": "Condition.meta.tag.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.implicitRules",
        "path": "Condition.implicitRules",
        "max": "0"
      },
      {
        "id": "Condition.language",
        "path": "Condition.language",
        "max": "0"
      },
      {
        "id": "Condition.text",
        "path": "Condition.text",
        "max": "0"
      },
      {
        "id": "Condition.contained",
        "path": "Condition.contained",
        "max": "0"
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.identifier:medicoResourceId-InfectionByCase",
        "path": "Condition.identifier",
        "sliceName": "medicoResourceId-InfectionByCase",
        "definition": "An identifier for medico internal resources, this will not be present if just created by another partner system like MetaIt IPSS",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": "http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1"
          }
        ]
      },
      {
        "id": "Condition.identifier:medicoResourceId-InfectionByCase.system",
        "path": "Condition.identifier.system",
        "definition": "Must be a constant underneath http://medico-emr.net/%KUNDE%/sid1/InfectionByCase",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=http://medico-emr.net/%KUNDE%/sid1/InfectionByCase"
      },
      {
        "id": "Condition.identifier:medicoResourceId-InfectionByPatient",
        "path": "Condition.identifier",
        "sliceName": "medicoResourceId-InfectionByPatient",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": "http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1"
          }
        ]
      },
      {
        "id": "Condition.identifier:medicoResourceId-InfectionByPatient.system",
        "path": "Condition.identifier.system",
        "definition": "Must be a constant underneath http://medico-emr.net/%KUNDE%/sid1/InfectionByPatient",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=http://medico-emr.net/%KUNDE%/sid1/InfectionByPatient"
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "short": "active | resolved",
        "definition": "The clinical status of the infection."
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "short": "confirmed",
        "definition": "Conditions returned from medico (as case or patient related attributes \"Merkmale\") - will be labelled as \"confirmed\" in this field",
        "fixedCode": "confirmed"
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.category.id",
        "path": "Condition.category.id",
        "max": "0"
      },
      {
        "id": "Condition.category.coding",
        "path": "Condition.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.category.coding.id",
        "path": "Condition.category.coding.id",
        "max": "0"
      },
      {
        "id": "Condition.category.coding.system",
        "path": "Condition.category.coding.system",
        "min": 1,
        "fixedUri": "http://medico-emr.net/cs1"
      },
      {
        "id": "Condition.category.coding.version",
        "path": "Condition.category.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.category.coding.code",
        "path": "Condition.category.coding.code",
        "min": 1,
        "fixedCode": "Infection"
      },
      {
        "id": "Condition.category.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.category.coding.display",
        "max": "0"
      },
      {
        "id": "Condition.category.coding.userSelected",
        "path": "Condition.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.category.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.category.text",
        "max": "0"
      },
      {
        "id": "Condition.severity.id",
        "path": "Condition.severity.id",
        "max": "0"
      },
      {
        "id": "Condition.severity.coding",
        "path": "Condition.severity.coding",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://medico-emr.net/stu3/vs/Condition-Infection-Severity-1"
        }
      },
      {
        "id": "Condition.severity.coding.id",
        "path": "Condition.severity.coding.id",
        "max": "0"
      },
      {
        "id": "Condition.severity.coding.system",
        "path": "Condition.severity.coding.system",
        "min": 1,
        "fixedUri": "http://medico-emr.net/cs1"
      },
      {
        "id": "Condition.severity.coding.version",
        "path": "Condition.severity.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.severity.coding.code",
        "path": "Condition.severity.coding.code",
        "definition": "severity code defined by http://medico-emr.net/stu3/vs/Condition-Infection-Severity-1",
        "min": 1
      },
      {
        "id": "Condition.severity.coding.userSelected",
        "path": "Condition.severity.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.severity.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.severity.text",
        "max": "0"
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "min": 1
      },
      {
        "id": "Condition.code.id",
        "path": "Condition.code.id",
        "max": "0"
      },
      {
        "id": "Condition.code.coding",
        "path": "Condition.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.code.coding.id",
        "path": "Condition.code.coding.id",
        "max": "0"
      },
      {
        "id": "Condition.code.coding.system",
        "path": "Condition.code.coding.system",
        "definition": "http://medico-emr.net/%KUNDE%/cs/Infection\r\ncustomer specific defined infection codes",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=http://medico-emr.net/%KUNDE%/cs/Infection",
        "min": 1
      },
      {
        "id": "Condition.code.coding.version",
        "path": "Condition.code.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.code.coding.code",
        "path": "Condition.code.coding.code",
        "definition": "in medico this is a patient attribute key, which can be defined by customer in medico (x8956mkk, mkk)",
        "min": 1
      },
      {
        "id": "Condition.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.code.coding.display",
        "definition": "the description of the infection (x8956mkk.des)",
        "min": 1
      },
      {
        "id": "Condition.code.coding.userSelected",
        "path": "Condition.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.code.text",
        "definition": "medico: Plain text description of the infection (x8956mkk.desxl)"
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "max": "0"
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Condition.subject.id",
        "path": "Condition.subject.id",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.id",
        "path": "Condition.subject.identifier.id",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.use",
        "path": "Condition.subject.identifier.use",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.type",
        "path": "Condition.subject.identifier.type",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.period",
        "path": "Condition.subject.identifier.period",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.assigner",
        "path": "Condition.subject.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Condition.subject.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.subject.display",
        "max": "0"
      },
      {
        "id": "Condition.context",
        "path": "Condition.context",
        "definition": "medico: reference to encounter, not present if infection is based on patient (PER)",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          }
        ]
      },
      {
        "id": "Condition.context.id",
        "path": "Condition.context.id",
        "max": "0"
      },
      {
        "id": "Condition.context.identifier.id",
        "path": "Condition.context.identifier.id",
        "max": "0"
      },
      {
        "id": "Condition.context.identifier.use",
        "path": "Condition.context.identifier.use",
        "max": "0"
      },
      {
        "id": "Condition.context.identifier.type",
        "path": "Condition.context.identifier.type",
        "max": "0"
      },
      {
        "id": "Condition.context.identifier.period",
        "path": "Condition.context.identifier.period",
        "max": "0"
      },
      {
        "id": "Condition.context.identifier.assigner",
        "path": "Condition.context.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Condition.context.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.context.display",
        "max": "0"
      },
      {
        "id": "Condition.onset[x]:onsetDateTime",
        "path": "Condition.onsetDateTime",
        "sliceName": "onsetDateTime",
        "definition": "medico: initial start of the infection",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Condition.abatement[x]:abatementDateTime",
        "path": "Condition.abatementDateTime",
        "sliceName": "abatementDateTime",
        "definition": "datetime the infection is in remission or healed",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Condition.assertedDate",
        "path": "Condition.assertedDate",
        "definition": "medico: create or change date",
        "min": 1
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "definition": "medico: reference to create or change user",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://medico-emr.net/stu3/sd/Practitioner-User-1"
          }
        ]
      },
      {
        "id": "Condition.asserter.id",
        "path": "Condition.asserter.id",
        "max": "0"
      },
      {
        "id": "Condition.asserter.reference",
        "path": "Condition.asserter.reference",
        "min": 1
      },
      {
        "id": "Condition.asserter.identifier",
        "path": "Condition.asserter.identifier",
        "max": "0"
      },
      {
        "id": "Condition.asserter.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.asserter.display",
        "max": "0"
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "max": "0"
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "max": "0"
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "definition": "medico: comment if present (x1006pxt)"
      },
      {
        "id": "Condition.note.id",
        "path": "Condition.note.id",
        "max": "0"
      },
      {
        "id": "Condition.note.author[x]:authorReference",
        "path": "Condition.note.authorReference",
        "sliceName": "authorReference",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ]
      }
    ]
  }
}