PackagesCanonicalsLogsProblems
    Packages
    de.abda.erezeptabgabedatenbasis@1.4.1
    http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-Base-ZusatzdatenHerstellung
description: null
package_name: de.abda.erezeptabgabedatenbasis
derivation: constraint
name: DAV_PR_Base_ZusatzdatenHerstellung
type: MedicationDispense
elements:
  category: {index: 15}
  whenHandedOver: {index: 55}
  whenPrepared:
    short: Herstellungsdatum und Zeitpunkt der Herstellung
    constraint:
      PR-DatumMitZeit: {human: Die DateTimeAngabe muss eine Zeit beinhalten., source: 'http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-Base-ZusatzdatenHerstellung', severity: error, expression: 'toString().substring(10, 1) = ''T'''}
    index: 54
  eventHistory: {index: 62}
  meta: {type: Meta, index: 0}
  substitution: {index: 60}
  detectedIssue: {index: 61}
  medication[x]:
    elements:
      coding:
        index: 19
        elements:
          system: {index: 20}
          version: {index: 21}
          code: {index: 22}
          display: {index: 23}
          userSelected: {index: 24}
        required: [system, code]
      text: {index: 25}
    required: [coding]
  implicitRules: {index: 1}
  medicationCodeableConcept:
    type: CodeableConcept
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: not-applicable, system: 'http://terminology.hl7.org/CodeSystem/data-absent-reason'}
    choiceOf: medication
    index: 18
  type:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: ZusatzdatenHerstellung, system: 'http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-MedicationDispenseTyp'}
    index: 44
    elements:
      coding:
        index: 45
        elements:
          system: {index: 46}
          version: {index: 47}
          code: {index: 48}
          display: {index: 49}
          userSelected: {index: 50}
        required: [system, code]
      text: {index: 51}
    required: [coding]
  statusReason:
    choices: []
    index: 14
  note: {index: 58}
  extension:
    array: true
    min: 2
    index: 5
    slicing:
      rules: closed
      discriminator:
      - {path: url, type: value}
      min: 2
      slices:
        ZaehlerHerstellung:
          match: {url: null}
          schema:
            type: Extension
            short: Angabe des Zählers zur Kennzeichnung des Herstellungsvorgangs
            url: http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-Zaehler
            index: 6
            elements:
              value:
                short: Zähler zur Kennzeichnung des Herstellungsvorgangs
                constraint:
                  PR-ZaehlerHerstellung-1: {human: Das Element ZusatzdatenHerstellung kann 0 bis 99 mal angegeben werden. Daher hat der Zähler einen Wertebereich von 1 bis 99., source: 'http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-Base-ZusatzdatenHerstellung', severity: error, expression: 'toString().matches(''^\\d{1,2}$'')'}
                choices: []
                index: 8
        Einheit:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-ZusatzdatenEinheit', index: 9}
          min: 1
  contained: {index: 4}
  supportingInformation: {index: 28}
  status:
    pattern: {type: Code, value: completed}
    index: 12
  language: {index: 2}
  dosageInstruction: {index: 59}
  daysSupply: {index: 53}
  identifier: {index: 10}
  context: {index: 27}
  quantity: {index: 52}
  partOf: {index: 11}
  location: {index: 42}
  authorizingPrescription: {index: 43}
  receiver: {index: 57}
  subject: {index: 26}
  destination: {index: 56}
  performer:
    index: 29
    elements:
      function:
        short: Funktion der abrechnenden Apotheke
        index: 30
        elements:
          coding:
            index: 31
            elements:
              system: {index: 32}
              version: {index: 33}
              code: {short: 'Information, ob die abrechnende Apotheke auch Hersteller ist', index: 34}
              display: {index: 35}
              userSelected: {index: 36}
            required: [system, code]
          text: {index: 37}
        required: [coding]
      actor:
        elements:
          reference: {index: 38}
          type: {index: 39}
          identifier:
            short: Kennzeichen des Herstellenden
            constraint:
              PR-ZusatzdatenHerstellung-1: {human: 'Die Angabe des Identifiers für den Herstellerschlüssel muss dem Profil http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-DAVHerstellerSchluessel oder http://fhir.de/StructureDefinition/identifier-iknr entsprechen.', source: 'http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-Base-ZusatzdatenHerstellung', severity: error, expression: 'conformsTo(''http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-DAVHerstellerSchluessel'') or conformsTo(''http://fhir.de/StructureDefinition/identifier-iknr'')'}
              PR-ZusatzdatenHerstellung-2: {human: 'Wenn der Herstellerschlüssel als IK-Nummer angegeben wird, muss die Angabe 9-stellig inklusive Prüfziffer erfolgen.', source: 'http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-Base-ZusatzdatenHerstellung', severity: error, expression: 'conformsTo(''http://fhir.de/StructureDefinition/identifier-iknr'') implies value.matches(''^[0-9]{9}$'')'}
            index: 40
          display: {index: 41}
        required: [identifier]
    required: [function]
  medication:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: not-applicable, system: 'http://terminology.hl7.org/CodeSystem/data-absent-reason'}
    choices: [medicationCodeableConcept]
    index: 17
  text: {index: 3}
package_version: 1.4.1
extensions:
  ZaehlerHerstellung:
    url: http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-Zaehler
    type: Extension
    short: Angabe des Zählers zur Kennzeichnung des Herstellungsvorgangs
    index: 6
    elements:
      value:
        short: Zähler zur Kennzeichnung des Herstellungsvorgangs
        constraint:
          PR-ZaehlerHerstellung-1: {human: Das Element ZusatzdatenHerstellung kann 0 bis 99 mal angegeben werden. Daher hat der Zähler einen Wertebereich von 1 bis 99., source: 'http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-Base-ZusatzdatenHerstellung', severity: error, expression: 'toString().matches(''^\\d{1,2}$'')'}
        choices: []
        index: 8
  Einheit: {url: 'http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-ZusatzdatenEinheit', min: 1, type: Extension, index: 9}
class: profile
kind: resource
url: http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-Base-ZusatzdatenHerstellung
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: '1.4'
required: [type, meta]