PackagesCanonicalsLogsProblems
    Packages
    rs/bonsai.poc.second.test@1.1.3
    http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionDetails
description: null
package_name: rs/bonsai.poc.second.test
derivation: constraint
name: NLLPrescriptionDetails
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        nllPrescriptionDate:
          match: {url: nllPrescriptionDate}
          schema:
            short: Date when prescription was initially authored
            index: 1
            elements:
              url:
                pattern: {type: uri, value: nllPrescriptionDate}
                type: uri
                index: 2
              value:
                choices: [valueDateTime]
                index: 4
              valueDateTime: {type: dateTime, choiceOf: value, index: 5}
            required: [value, valueDateTime]
        nllPrescriber:
          match: {url: nllPrescriber}
          schema:
            _required: true
            index: 6
            elements:
              url:
                pattern: {type: uri, value: nllPrescriber}
                type: uri
                index: 7
              value:
                choices: [valueReference]
                index: 9
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLPractitioner']
                index: 10
            required: [value, valueReference]
        nllRegistrationBasis:
          match: {url: nllRegistrationBasis}
          schema:
            short: PAPER | PHONE
            binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/registration-basis'}
            index: 11
            elements:
              url:
                pattern: {type: uri, value: nllRegistrationBasis}
                type: uri
                index: 12
              value:
                choices: [valueCode]
                index: 14
              valueCode: {type: code, choiceOf: value, index: 15}
            required: [value, valueCode]
        nllCountryCode:
          match: {url: nllCountryCode}
          schema:
            short: Country code
            index: 16
            elements:
              url:
                pattern: {type: uri, value: nllCountryCode}
                type: uri
                index: 17
              value:
                choices: [valueCode]
                index: 19
              valueCode: {type: code, choiceOf: value, index: 20}
        nllSubstitutionAllowed:
          match: {url: nllSubstitutionAllowed}
          schema:
            short: Indicates if medication may be substituted
            index: 21
            elements:
              url:
                pattern: {type: uri, value: nllSubstitutionAllowed}
                type: uri
                index: 22
              value:
                choices: [valueBoolean]
                index: 24
              valueBoolean: {type: boolean, choiceOf: value, index: 25}
        nllFirstDispenseBefore:
          match: {url: nllFirstDispenseBefore}
          schema:
            short: First dispense must occur before
            index: 26
            elements:
              url:
                pattern: {type: uri, value: nllFirstDispenseBefore}
                type: uri
                index: 27
              value:
                choices: [valueDate]
                index: 29
              valueDate: {type: date, choiceOf: value, index: 30}
        nllPrescriberCostCenter:
          match: {url: nllPrescriberCostCenter}
          schema:
            index: 31
            elements:
              url:
                pattern: {type: uri, value: nllPrescriberCostCenter}
                type: uri
                index: 32
              value:
                choices: [valueIdentifier]
                index: 34
              valueIdentifier: {type: Identifier, choiceOf: value, index: 35}
              value[x]:
                elements:
                  system:
                    short: Cost center (sv arbetsplatskod)
                    pattern: {type: uri, value: 'http://electronichealth.se/identifier/arbetsplatskod'}
                    mustSupport: true
                    type: uri
                    index: 36
                  value: {short: Cost center (sv arbetsplatskod) value, mustSupport: true, index: 37}
                required: [value]
  url:
    pattern: {type: uri, value: 'http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionDetails'}
    type: uri
    index: 38
  value:
    choices: []
    index: 40
package_version: 1.1.3
extensions:
  nllPrescriptionDate:
    url: nllPrescriptionDate
    short: Date when prescription was initially authored
    index: 1
    elements:
      url:
        pattern: {type: uri, value: nllPrescriptionDate}
        type: uri
        index: 2
      value:
        choices: [valueDateTime]
        index: 4
      valueDateTime: {type: dateTime, choiceOf: value, index: 5}
    required: [value, valueDateTime]
  nllPrescriber:
    url: nllPrescriber
    _required: true
    index: 6
    elements:
      url:
        pattern: {type: uri, value: nllPrescriber}
        type: uri
        index: 7
      value:
        choices: [valueReference]
        index: 9
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLPractitioner']
        index: 10
    required: [value, valueReference]
  nllRegistrationBasis:
    url: nllRegistrationBasis
    short: PAPER | PHONE
    binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/registration-basis'}
    index: 11
    elements:
      url:
        pattern: {type: uri, value: nllRegistrationBasis}
        type: uri
        index: 12
      value:
        choices: [valueCode]
        index: 14
      valueCode: {type: code, choiceOf: value, index: 15}
    required: [value, valueCode]
  nllCountryCode:
    url: nllCountryCode
    short: Country code
    index: 16
    elements:
      url:
        pattern: {type: uri, value: nllCountryCode}
        type: uri
        index: 17
      value:
        choices: [valueCode]
        index: 19
      valueCode: {type: code, choiceOf: value, index: 20}
  nllSubstitutionAllowed:
    url: nllSubstitutionAllowed
    short: Indicates if medication may be substituted
    index: 21
    elements:
      url:
        pattern: {type: uri, value: nllSubstitutionAllowed}
        type: uri
        index: 22
      value:
        choices: [valueBoolean]
        index: 24
      valueBoolean: {type: boolean, choiceOf: value, index: 25}
  nllFirstDispenseBefore:
    url: nllFirstDispenseBefore
    short: First dispense must occur before
    index: 26
    elements:
      url:
        pattern: {type: uri, value: nllFirstDispenseBefore}
        type: uri
        index: 27
      value:
        choices: [valueDate]
        index: 29
      valueDate: {type: date, choiceOf: value, index: 30}
  nllPrescriberCostCenter:
    url: nllPrescriberCostCenter
    index: 31
    elements:
      url:
        pattern: {type: uri, value: nllPrescriberCostCenter}
        type: uri
        index: 32
      value:
        choices: [valueIdentifier]
        index: 34
      valueIdentifier: {type: Identifier, choiceOf: value, index: 35}
      value[x]:
        elements:
          system:
            short: Cost center (sv arbetsplatskod)
            pattern: {type: uri, value: 'http://electronichealth.se/identifier/arbetsplatskod'}
            mustSupport: true
            type: uri
            index: 36
          value: {short: Cost center (sv arbetsplatskod) value, mustSupport: true, index: 37}
        required: [value]
class: extension
kind: complex-type
url: http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionDetails
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 1.0.1
required: [extension]