{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-AW-Selektivvertrag",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Selektivvertrag",
  "version": "1.3.0",
  "name": "KBV_PR_AW_Selektivvertrag",
  "status": "draft",
  "copyright": "Copyright © [2022], Kassenärztliche Bundesvereinigung (KBV). All rights reserved.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Contract",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Contract",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Contract",
        "path": "Contract",
        "short": "Selektivvertrag",
        "definition": "In dieser Ressource können Vertragsdetails zu einem Selektivvertrag dokumentiert werden.",
        "constraint": [
          {
            "key": "AWS-1",
            "severity": "error",
            "human": "Der Status darf nur executed, cancelled oder offered sein",
            "expression": "status='executed' or status='cancelled' or status='offered'"
          }
        ]
      },
      {
        "id": "Contract.id",
        "path": "Contract.id",
        "min": 1
      },
      {
        "id": "Contract.meta",
        "path": "Contract.meta",
        "min": 1
      },
      {
        "id": "Contract.meta.versionId",
        "path": "Contract.meta.versionId",
        "min": 1
      },
      {
        "id": "Contract.meta.lastUpdated",
        "path": "Contract.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Contract.meta.profile",
        "path": "Contract.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Selektivvertrag|1.3.0"
      },
      {
        "id": "Contract.text",
        "path": "Contract.text",
        "min": 1
      },
      {
        "id": "Contract.text.status",
        "path": "Contract.text.status",
        "short": "extensions",
        "fixedCode": "extensions"
      },
      {
        "id": "Contract.identifier",
        "path": "Contract.identifier",
        "short": "Vertragskennzeichen",
        "definition": "Vertragskennzeichen des Selektivvertrages",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Contract.identifier.type",
        "path": "Contract.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.identifier.type.coding",
        "path": "Contract.identifier.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Contract.identifier.type.coding.system",
        "path": "Contract.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "https://fhir.kbv.de/CodeSystem/KBV_CS_AW_Selektivvertrag_Identifiertyp",
        "mustSupport": true
      },
      {
        "id": "Contract.identifier.type.coding.code",
        "path": "Contract.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "Bezeichnung_Vertragskennzeichen",
        "mustSupport": true
      },
      {
        "id": "Contract.identifier.type.coding.userSelected",
        "path": "Contract.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.identifier.type.text",
        "path": "Contract.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Contract.identifier.value",
        "path": "Contract.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.identifier.period",
        "path": "Contract.identifier.period",
        "max": "0"
      },
      {
        "id": "Contract.identifier.assigner",
        "path": "Contract.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Contract.url",
        "path": "Contract.url",
        "max": "0"
      },
      {
        "id": "Contract.version",
        "path": "Contract.version",
        "max": "0"
      },
      {
        "id": "Contract.status",
        "path": "Contract.status",
        "definition": "In diesem Feld wird der Einschreibestatus mit den drei erblaubten Statuswerten angegeben:\r\nEingeschrieben: executed\r\nNicht Eingeschrieben: cancelled\r\nBeantragt: offered",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.legalState",
        "path": "Contract.legalState",
        "max": "0"
      },
      {
        "id": "Contract.instantiatesCanonical",
        "path": "Contract.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "Contract.instantiatesUri",
        "path": "Contract.instantiatesUri",
        "max": "0"
      },
      {
        "id": "Contract.contentDerivative",
        "path": "Contract.contentDerivative",
        "max": "0"
      },
      {
        "id": "Contract.issued",
        "path": "Contract.issued",
        "short": "Antragsstellung",
        "definition": "In diesem Feld ist das Datum der Antragsstellung zu dokumentieren",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.applies",
        "path": "Contract.applies",
        "short": "Teilnahme",
        "definition": "In diesem Element ist die Teilnahme zu erfassen.",
        "mustSupport": true
      },
      {
        "id": "Contract.applies.start",
        "path": "Contract.applies.start",
        "short": "Teilnahme von",
        "definition": "Datum des Beginns der Teilnahme",
        "mustSupport": true
      },
      {
        "id": "Contract.applies.end",
        "path": "Contract.applies.end",
        "short": "Teilnahme bis",
        "definition": "Enddatum der Teilnahme",
        "mustSupport": true
      },
      {
        "id": "Contract.expirationType",
        "path": "Contract.expirationType",
        "max": "0"
      },
      {
        "id": "Contract.subject",
        "path": "Contract.subject",
        "label": "TR01",
        "short": "Patientenbezug",
        "definition": "Siehe Reason for inclusion and constrainment",
        "requirements": "Diese Referenz wurde aus technischen Gründen erzeugt, um dieser patientenbezogenen Ressource zu genügen. Aus informationstechnischer Sicht ist Diese jedoch nicht notwendig, da der Zusammenhang bereits über das Attribut related hergestellt worden ist.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Patient|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Contract.subject.reference",
        "path": "Contract.subject.reference",
        "min": 1
      },
      {
        "id": "Contract.subject.type",
        "path": "Contract.subject.type",
        "max": "0"
      },
      {
        "id": "Contract.subject.identifier",
        "path": "Contract.subject.identifier",
        "max": "0"
      },
      {
        "id": "Contract.subject.display",
        "path": "Contract.subject.display",
        "max": "0"
      },
      {
        "id": "Contract.authority",
        "path": "Contract.authority",
        "short": "Kostenträger",
        "definition": "Es ist ein Kostentraeger anzugeben. Dazu ist mindestens der Name",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Organisation|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Contract.authority.reference",
        "path": "Contract.authority.reference",
        "mustSupport": true
      },
      {
        "id": "Contract.authority.type",
        "path": "Contract.authority.type",
        "max": "0"
      },
      {
        "id": "Contract.authority.identifier",
        "path": "Contract.authority.identifier",
        "max": "0"
      },
      {
        "id": "Contract.authority.display",
        "path": "Contract.authority.display",
        "short": "Kostenträgername",
        "definition": "Name des Kostenträgers",
        "mustSupport": true
      },
      {
        "id": "Contract.domain",
        "path": "Contract.domain",
        "max": "0"
      },
      {
        "id": "Contract.site",
        "path": "Contract.site",
        "max": "0"
      },
      {
        "id": "Contract.name",
        "path": "Contract.name",
        "max": "0"
      },
      {
        "id": "Contract.title",
        "path": "Contract.title",
        "max": "0"
      },
      {
        "id": "Contract.subtitle",
        "path": "Contract.subtitle",
        "max": "0"
      },
      {
        "id": "Contract.alias",
        "path": "Contract.alias",
        "max": "0"
      },
      {
        "id": "Contract.author",
        "path": "Contract.author",
        "max": "0"
      },
      {
        "id": "Contract.scope",
        "path": "Contract.scope",
        "max": "0"
      },
      {
        "id": "Contract.topic[x]",
        "path": "Contract.topic[x]",
        "max": "0"
      },
      {
        "id": "Contract.type",
        "path": "Contract.type",
        "short": "Klassifizierung der Ressource",
        "definition": "Dieses Attribut wird zur Klassifizierung dieser Ressource verwendet.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.type.coding",
        "path": "Contract.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Contract.type.coding.system",
        "path": "Contract.type.coding.system",
        "min": 1,
        "fixedUri": "https://fhir.kbv.de/CodeSystem/KBV_CS_AW_Ressourcentyp",
        "mustSupport": true
      },
      {
        "id": "Contract.type.coding.code",
        "path": "Contract.type.coding.code",
        "min": 1,
        "fixedCode": "Selektivvertrag",
        "mustSupport": true
      },
      {
        "id": "Contract.type.coding.userSelected",
        "path": "Contract.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.type.text",
        "path": "Contract.type.text",
        "max": "0"
      },
      {
        "id": "Contract.subType",
        "path": "Contract.subType",
        "max": "0"
      },
      {
        "id": "Contract.contentDefinition",
        "path": "Contract.contentDefinition",
        "max": "0"
      },
      {
        "id": "Contract.term",
        "path": "Contract.term",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Contract.term.identifier",
        "path": "Contract.term.identifier",
        "max": "0"
      },
      {
        "id": "Contract.term.issued",
        "path": "Contract.term.issued",
        "max": "0"
      },
      {
        "id": "Contract.term.applies",
        "path": "Contract.term.applies",
        "max": "0"
      },
      {
        "id": "Contract.term.topic[x]",
        "path": "Contract.term.topic[x]",
        "max": "0"
      },
      {
        "id": "Contract.term.type",
        "path": "Contract.term.type",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ContractTermType"
            }
          ],
          "strength": "required",
          "valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_AW_Gebuehrenordnung"
        }
      },
      {
        "id": "Contract.term.type.coding",
        "path": "Contract.term.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Contract.term.type.coding.system",
        "path": "Contract.term.type.coding.system",
        "min": 1,
        "fixedUri": "https://fhir.kbv.de/CodeSystem/KBV_CS_AW_Gebuehrenordnung",
        "mustSupport": true
      },
      {
        "id": "Contract.term.type.coding.code",
        "path": "Contract.term.type.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Contract.term.type.coding.userSelected",
        "path": "Contract.term.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.term.type.text",
        "path": "Contract.term.type.text",
        "max": "0"
      },
      {
        "id": "Contract.term.subType",
        "path": "Contract.term.subType",
        "max": "0"
      },
      {
        "id": "Contract.term.text",
        "path": "Contract.term.text",
        "max": "0"
      },
      {
        "id": "Contract.term.securityLabel",
        "path": "Contract.term.securityLabel",
        "max": "0"
      },
      {
        "id": "Contract.term.offer",
        "path": "Contract.term.offer",
        "mustSupport": true
      },
      {
        "id": "Contract.term.offer.identifier",
        "path": "Contract.term.offer.identifier",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.party",
        "path": "Contract.term.offer.party",
        "short": "Rechnungsempfänger",
        "definition": "Informationen zum Rechnungempfänger",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Contract.term.offer.party.reference",
        "path": "Contract.term.offer.party.reference",
        "short": "Rechnungsempfänger",
        "definition": "Informationen zum Rechnungempfänger",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Patient|1.3.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Bezugsperson|1.3.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Organisation|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Contract.term.offer.party.reference.reference",
        "path": "Contract.term.offer.party.reference.reference",
        "min": 1
      },
      {
        "id": "Contract.term.offer.party.reference.type",
        "path": "Contract.term.offer.party.reference.type",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.party.reference.identifier",
        "path": "Contract.term.offer.party.reference.identifier",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.party.reference.display",
        "path": "Contract.term.offer.party.reference.display",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.party.role",
        "path": "Contract.term.offer.party.role",
        "mustSupport": true
      },
      {
        "id": "Contract.term.offer.party.role.coding",
        "path": "Contract.term.offer.party.role.coding",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.party.role.text",
        "path": "Contract.term.offer.party.role.text",
        "definition": "Die Rolle ist immer Rechnungempfaenger.",
        "min": 1,
        "fixedString": "Rechnungempfaenger",
        "mustSupport": true
      },
      {
        "id": "Contract.term.offer.topic",
        "path": "Contract.term.offer.topic",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.type",
        "path": "Contract.term.offer.type",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.decision",
        "path": "Contract.term.offer.decision",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.decisionMode",
        "path": "Contract.term.offer.decisionMode",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.answer",
        "path": "Contract.term.offer.answer",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.text",
        "path": "Contract.term.offer.text",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.linkId",
        "path": "Contract.term.offer.linkId",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.securityLabelNumber",
        "path": "Contract.term.offer.securityLabelNumber",
        "max": "0"
      },
      {
        "id": "Contract.term.asset",
        "path": "Contract.term.asset",
        "max": "0"
      },
      {
        "id": "Contract.term.action",
        "path": "Contract.term.action",
        "max": "0"
      },
      {
        "id": "Contract.term.group",
        "path": "Contract.term.group",
        "max": "0",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Contract#Contract.term"
      },
      {
        "id": "Contract.supportingInfo",
        "path": "Contract.supportingInfo",
        "max": "0"
      },
      {
        "id": "Contract.relevantHistory",
        "path": "Contract.relevantHistory",
        "max": "0"
      },
      {
        "id": "Contract.signer",
        "path": "Contract.signer",
        "max": "0"
      },
      {
        "id": "Contract.friendly",
        "path": "Contract.friendly",
        "max": "0"
      },
      {
        "id": "Contract.legal",
        "path": "Contract.legal",
        "max": "0"
      },
      {
        "id": "Contract.rule",
        "path": "Contract.rule",
        "max": "0"
      },
      {
        "id": "Contract.legallyBinding[x]",
        "path": "Contract.legallyBinding[x]",
        "max": "0"
      }
    ]
  }
}