{
  "resourceType": "StructureDefinition",
  "id": "39fd147a-d59f-4c21-9234-992ec89b3880",
  "meta": {
    "lastUpdated": "2018-12-17T20:38:33.917+00:00"
  },
  "url": "http://fhir.de/StructureDefinition/task-de-p21",
  "version": "0.1-WORK",
  "name": "task-de-p21",
  "title": "Task, deutsches §21 KHEntgG-Profil (Version 0.1)",
  "status": "draft",
  "date": "2018-12-17T20:38:33.603+00:00",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "KHEntgG",
      "name": "Datensatzbeschreibung nach Krankenhausentgeltgesetz"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/organization-de-p21"
          }
        ]
      },
      {
        "id": "Task.owner.identifier",
        "path": "Task.owner.identifier",
        "patternIdentifier": {
          "system": "http://fhir.de/NamingSystem/arge-ik/iknr"
        }
      },
      {
        "id": "Task.owner.identifier.value",
        "path": "Task.owner.identifier.value",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Institutionskennzeichen des Krankenhauses",
            "comment": "Krankenhaus.CSV.1"
          }
        ]
      },
      {
        "id": "Task.input",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Parameter"
          }
        ],
        "path": "Task.input",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.input:DRG-vereinbart",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Parameter"
          }
        ],
        "path": "Task.input",
        "sliceName": "DRG-vereinbart"
      },
      {
        "id": "Task.input:DRG-vereinbart.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Task.input.type.text",
        "fixedString": "Diagnosis Related Groups"
      },
      {
        "id": "Task.input:DRG-vereinbart.value[x]",
        "path": "Task.input.value[x]",
        "type": [
          {
            "code": "decimal"
          },
          {
            "code": "integer"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "unsignedInt"
          }
        ],
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "DRG-Fälle, vereinbart",
            "comment": "Abrechnung.CSV.2"
          }
        ]
      },
      {
        "id": "Task.input:BWR-vereinbart",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Parameter"
          }
        ],
        "path": "Task.input",
        "sliceName": "BWR-vereinbart"
      },
      {
        "id": "Task.input:BWR-vereinbart.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Task.input.type.text",
        "fixedString": "Bewertungsrelation"
      },
      {
        "id": "Task.input:BWR-vereinbart.value[x]",
        "path": "Task.input.value[x]",
        "type": [
          {
            "code": "code"
          },
          {
            "code": "decimal"
          },
          {
            "code": "integer"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Bewertungsrelationen, vereinbart",
            "comment": "Abrechnung.CSV.4"
          }
        ]
      },
      {
        "id": "Task.output",
        "path": "Task.output",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.output:DRG-abgerechnet",
        "path": "Task.output",
        "sliceName": "DRG-abgerechnet"
      },
      {
        "id": "Task.output:DRG-abgerechnet.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Task.output.type.text",
        "fixedString": "Diagnosis Related Groups"
      },
      {
        "id": "Task.output:DRG-abgerechnet.value[x]",
        "path": "Task.output.value[x]",
        "type": [
          {
            "code": "decimal"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "DRG-Fälle, abgerechnet",
            "comment": "Abrechnung.CSV.3"
          }
        ]
      },
      {
        "id": "Task.output:BWR-abgerechnet",
        "path": "Task.output",
        "sliceName": "BWR-abgerechnet"
      },
      {
        "id": "Task.output:BWR-abgerechnet.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Task.output.type.text",
        "fixedString": "Bewertungsrelation"
      },
      {
        "id": "Task.output:BWR-abgerechnet.value[x]",
        "path": "Task.output.value[x]",
        "type": [
          {
            "code": "decimal"
          },
          {
            "code": "integer"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Bewertungsrelationen, abgerechnet",
            "comment": "Abrechnung.CSV.5"
          }
        ]
      }
    ]
  }
}