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-elm derivation: constraint name: ChElmPatient type: Patient elements: identifier: mustSupport: true array: true max: 2 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: 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: text: {short: For usage in the case of HIV/AIDS (see IG guidance), maxLength: 2, index: 7} family: {short: In the case of HIV/AIDS masked and provide a specific value (see IG guidance), maxLength: 100, index: 8} given: {short: In the case of HIV/AIDS masked and provide a specific value (see IG guidance), maxLength: 100, index: 9} required: [given, family] telecom: index: 10 slicing: slices: phone: match: {} schema: index: 10 elements: value: {maxLength: 25, index: 11} gender: {index: 12} 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: 13 address: mustSupport: true index: 14 slicing: rules: open discriminator: - {path: use, type: value} min: null max: 1 slices: home: match: {use: home} schema: short: Residential address mustSupport: true index: 15 elements: use: pattern: {type: Code, value: home} index: 16 line: index: 17 extensions: streetName: url: null _required: true index: 19 elements: value: maxLength: 100 choices: [] index: 21 houseNumber: url: null mustSupport: true index: 22 elements: value: maxLength: 10 choices: [] index: 24 elements: extension: index: 18 slicing: slices: streetName: match: {} schema: _required: true index: 19 elements: value: maxLength: 100 choices: [] index: 21 houseNumber: match: {} schema: mustSupport: true index: 22 elements: value: maxLength: 10 choices: [] index: 24 required: [extension] city: {maxLength: 50, mustSupport: true, index: 25} state: {mustSupport: true, index: 26} postalCode: {maxLength: 10, mustSupport: true, index: 27} country: mustSupport: true index: 28 extensions: countrycode: {url: null, min: 1, _required: true, index: 30} elements: extension: index: 29 slicing: slices: countrycode: match: {} schema: {_required: true, index: 30} min: 1 required: [extension] required: [use] package_version: 1.1.1 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.1.1 required: [gender, name, birthDate]