description: This CH ELM base profile constrains the Patient resource for the purpose of laboratory orders and test reports. package_name: ch.fhir.ig.ch derivation: constraint name: ChElmPatient type: Patient elements: identifier: mustSupport: true index: 0 slicing: slices: EPR-SPID: match: {} schema: {index: 1} max: 0 AHVN13: match: {} schema: {short: OASI Number Switzerland, mustSupport: true, index: 2} max: 1 LocalPid: match: {} schema: {index: 3} max: 0 insuranceCardNumber: match: {} schema: {index: 4} max: 0 IDN: match: {} schema: short: IDN Liechtenstein type: Identifier mustSupport: true pattern: type: Identifier value: {system: 'urn:oid:2.16.438.10.20.10.10.1.2.1'} index: 5 min: 0 max: 1 name: type: HumanName short: Whether the personal data is transmitted by using initials, full name or a special combination is described under 'Guidance - Personal Data (Patient Name)' index: 6 elements: family: {short: masked when using HIV/VCT-extensions (see IG guidance)., maxLength: 100, index: 7} given: {short: masked when using HIV/VCT-extensions (see IG guidance)., maxLength: 100, index: 8} required: [given, family] telecom: index: 9 slicing: slices: phone: match: {} schema: index: 9 elements: value: {maxLength: 25, index: 10} gender: {index: 11} birthDate: constraint: ch-elm-dateTime: {human: At least the format YYYY-MM-DD is required., source: 'http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-patient', severity: error, expression: $this.toString().length() >= 10} index: 12 address: mustSupport: true index: 13 slicing: rules: open discriminator: - {path: use, type: value} min: null max: 1 slices: home: match: {use: home} schema: short: Residential address mustSupport: true index: 14 elements: use: pattern: {type: Code, value: home} index: 15 line: index: 16 extensions: streetName: url: null index: 17 elements: value: maxLength: 100 choices: [] index: 19 houseNumber: url: null index: 20 elements: value: maxLength: 10 choices: [] index: 22 elements: extension: index: 17 slicing: slices: streetName: match: {} schema: index: 17 elements: value: maxLength: 100 choices: [] index: 19 houseNumber: match: {} schema: index: 20 elements: value: maxLength: 10 choices: [] index: 22 city: {maxLength: 50, mustSupport: true, index: 23} state: {short: sub-unit of country. canton-abbreviation is expected for a Swiss or Liechtenstein address., mustSupport: true, index: 24} postalCode: {maxLength: 10, mustSupport: true, index: 25} country: mustSupport: true index: 26 extensions: countrycode: {url: null, min: 1, _required: true, index: 28} elements: extension: index: 27 slicing: slices: countrycode: match: {} schema: {_required: true, index: 28} min: 1 required: [extension] required: [use] package_version: elm-1.8.0 class: profile kind: resource url: http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-patient base: http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-patient version: 1.8.0 required: [gender, name, birthDate]