description: Profile representing a patient package_name: se.electronichealth.fhir.merier.r5 derivation: constraint name: PatientSeMeRI type: Patient elements: identifier: mustSupport: true index: 0 elements: system: {mustSupport: true, index: 1} value: {mustSupport: true, index: 2} required: [value, system] slicing: rules: open ordered: false description: Slice on Identifier based on the system value discriminator: - {path: system, type: value} min: 1 max: 1 slices: personalIdentityNumber: match: {system: 'http://electronichealth.se/identifier/personnummer'} schema: mustSupport: true index: 3 elements: system: pattern: {type: Uri, value: 'http://electronichealth.se/identifier/personnummer'} index: 4 value: constraint: se-meri-personal-identity-number-value-1: {human: 'A Swedish personal identity number (sv: personnummer) should follow format 19800103(-)2385', source: 'http://electronichealth.se/fhir/meri/StructureDefinition/patient-se-meri', severity: error, expression: '$this.matches(''^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])-?\\d{4}$'')'} index: 5 coordinationNumber: match: {system: 'http://electronichealth.se/identifier/samordningsnummer'} schema: mustSupport: true index: 6 elements: system: pattern: {type: Uri, value: 'http://electronichealth.se/identifier/samordningsnummer'} index: 7 value: constraint: se-meri-coordination-number-value-1: {human: 'A Swedish coordination number (sv: samordningsnummer) should follow format 20190368(-)2399', source: 'http://electronichealth.se/fhir/meri/StructureDefinition/patient-se-meri', severity: error, expression: '$this.matches(''^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(0[1-9]|1[0-2])([6-9][1-9])-?\\d{4}$'')'} index: 8 link: mustSupport: true index: 9 elements: other: type: Reference mustSupport: true refers: ['http://electronichealth.se/fhir/meri/StructureDefinition/medical-record-se-meri'] index: 10 type: pattern: {type: Code, value: seealso} mustSupport: true index: 11 package_version: 0.1.0-alpha class: profile kind: resource url: http://electronichealth.se/fhir/meri/StructureDefinition/patient-se-meri base: http://hl7.org/fhir/StructureDefinition/Patient version: 0.1.0 required: [identifier]