PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-core@0.1.0
    http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-address-ech-10
description: Postal address according to eCH-0010
package_name: ch.fhir.ig.ch-core
derivation: constraint
name: CHCoreAddressECH10
type: Address
elements:
  type:
    type: code
    short: postal
    pattern: {type: Code, value: postal}
    index: 0
  line:
    type: string
    short: Street name, number, direction & P.O. Box etc.
    array: true
    index: 1
    extensions:
      ech10line: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-line', max: 1, type: Extension, index: 3}
      houseNumber: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber', max: 1, type: Extension, index: 4}
      unitID: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID', max: 1, type: Extension, index: 5}
      postBox: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox', max: 1, type: Extension, index: 6}
    elements:
      extension:
        index: 2
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            ech10line:
              match: {url: null}
              schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-line', index: 3}
              max: 1
            houseNumber:
              match: {url: null}
              schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber', index: 4}
              max: 1
            unitID:
              match: {url: null}
              schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID', index: 5}
              max: 1
            postBox:
              match: {url: null}
              schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox', index: 6}
              max: 1
  city: {type: string, isSummary: true, index: 7}
  district: {short: District name (aka county), type: string, isSummary: true, index: 8}
  state: {index: 9}
  postalCode: {short: Postal code for area, type: string, index: 10}
  country: {type: string, index: 11}
  period: {type: Period, short: Time period when address was/is in use, index: 12}
package_version: 0.1.0
class: complex-type
kind: complex-type
url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-address-ech-10
base: http://hl7.org/fhir/StructureDefinition/Address
version: 0.1.0
required: [country, city, postalCode]