description: This profile holds information about organizations that can use endpoints. package_name: se.electronichealth.fhir.merier.r5 derivation: constraint name: OrganizationEr type: Organization elements: identifier: mustSupport: true index: 0 slicing: rules: open ordered: false description: Slice on identifier based on system value discriminator: - {path: system, type: value} min: 1 max: 1 slices: organizationIdentifier: match: {system: 'urn:oid:2.5.4.97'} schema: mustSupport: true index: 1 elements: system: pattern: {type: Uri, value: 'urn:oid:2.5.4.97'} mustSupport: true index: 2 value: constraint: organization-identifier-value-er-1: {human: 'A Swedish organization identifier (sv: organisationsnummer) should follow format 7999000057', source: 'http://electronichealth.se/fhir/NDI/StructureDefinition/organization-er', severity: error, expression: '$this.matches(''^\\d{6}\\d{4}$'')'} mustSupport: true index: 3 required: [value, system] personalIdentityNumber: match: {system: 'http://electronichealth.se/identifier/personnummer'} schema: mustSupport: true index: 4 elements: system: pattern: {type: Uri, value: 'http://electronichealth.se/identifier/personnummer'} mustSupport: true index: 5 value: constraint: personal-identity-number-value-er-1: {human: 'A Swedish personal identity number (sv: personnummer) should follow format 198001032385', source: 'http://electronichealth.se/fhir/NDI/StructureDefinition/organization-er', 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}$'')'} mustSupport: true index: 6 required: [value, system] coordinationNumber: match: {system: 'http://electronichealth.se/identifier/samordningsnummer'} schema: mustSupport: true index: 7 elements: system: pattern: {type: Uri, value: 'http://electronichealth.se/identifier/samordningsnummer'} mustSupport: true index: 8 value: constraint: coordination-number-value-er-1: {human: 'A Swedish coordination number (sv: samordningsnummer) should follow format 201903682399', source: 'http://electronichealth.se/fhir/NDI/StructureDefinition/organization-er', 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}$'')'} mustSupport: true index: 9 required: [value, system] type: binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/NDI/ValueSet/er-organization-type'} mustSupport: true index: 10 elements: coding: mustSupport: true index: 11 elements: system: {mustSupport: true, index: 12} version: {mustSupport: true, index: 13} code: {mustSupport: true, index: 14} display: {mustSupport: true, index: 15} required: [display, system, code] required: [coding] endpoint: type: Reference mustSupport: true refers: ['http://electronichealth.se/fhir/NDI/StructureDefinition/endpoint-er'] index: 16 package_version: 0.1.0 class: profile kind: resource url: http://electronichealth.se/fhir/NDI/StructureDefinition/organization-er base: http://hl7.org/fhir/StructureDefinition/Organization version: 0.1.0 required: [identifier]