description: HVOOrganizationAffiliation contains information about an assignment which someone has been assigned to perform during a longer (often undecided) period of time. package_name: se.electronichealth.fhir.hvo.r5 derivation: constraint name: HVOOrganizationAffiliation type: OrganizationAffiliation elements: id: {mustSupport: true, index: 0} identifier: mustSupport: true index: 1 elements: system: {mustSupport: true, index: 2} value: {mustSupport: true, index: 3} required: [value, system] period: mustSupport: true index: 4 elements: start: {short: The moment when the affiliation becomes active, mustSupport: true, index: 5} end: {short: The moment when the affiliation becomes inactive or completed. Do not use if it is unknown, mustSupport: true, index: 6} required: [start] organization: type: Reference short: Organization which ordered the task mustSupport: true refers: ['http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganization'] index: 7 participatingOrganization: type: Reference short: Organization which performs the task mustSupport: true refers: ['http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganization'] index: 8 code: binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-organization-affiliation-business-category'} mustSupport: true index: 9 elements: coding: mustSupport: true index: 10 elements: system: {mustSupport: true, index: 11} code: {mustSupport: true, index: 12} required: [system, code] text: {mustSupport: true, index: 13} healthcareService: type: Reference mustSupport: true refers: ['http://electronichealth.se/fhir/hvo/StructureDefinition/HVOService'] index: 14 contact: mustSupport: true index: 15 elements: purpose: binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-contact-purpose'} mustSupport: true index: 16 elements: coding: mustSupport: true index: 17 elements: system: {mustSupport: true, index: 18} code: {mustSupport: true, index: 19} required: [system, code] required: [coding] telecom: constraint: hvo-telecom-phone-2: {human: 'If telecom.system = phone or fax, value should have max length of 32 characters', source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation', severity: error, expression: value.length() <= 32 or (system != 'phone' and system != 'fax')} hvo-telecom-email-2: {human: 'If telecom.system = email, value should have max length of 255 characters', source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation', severity: error, expression: value.length() <= 255 or system != 'email'} hvo-telecom-url-1: {human: 'If telecom.system = url, value should follow valid format. Example: https://example.com', source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation', severity: error, expression: 'value.matches(''(https?|ftp)://(-\\.)?([^\\s/?\\.#-]+\\.?)+(/[^\\s]*)?$'') or system != ''url'''} hvo-telecom-url-2: {human: 'If telecom.system = url, value should have max length of 2000 characters', source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation', severity: error, expression: value.length() <= 2000 or system != 'url'} hvo-telecom-email-1: {human: 'If telecom.system = email, value should follow valid format Example: test@test.com', source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation', severity: error, expression: 'value.matches(''^[\\w.-]{1,64}@(?!.{254})[\\w.-]+\\.[A-Za-z]{2,4}$'') or system != ''email'''} hvo-telecom-phone-1: {human: 'If telecom.system = phone or fax, value should follow format +46123456789', source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation', severity: error, expression: 'value.matches(''^\\+[1-9][0-9]+$'') or (system != ''phone'' and system != ''fax'')'} mustSupport: true index: 20 elements: system: binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/contact-point-system'} mustSupport: true index: 21 value: constraint: hvo-telecom-value-1: {human: A telecom value should have max length of 2000 characters, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation', severity: error, expression: $this.length() <= 2000} mustSupport: true index: 22 period: mustSupport: true index: 23 elements: start: {mustSupport: true, index: 24} end: {mustSupport: true, index: 25} required: [start] required: [value, period, system] required: [purpose] package_version: 1.0.0-beta.1 class: profile kind: resource url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation base: http://hl7.org/fhir/StructureDefinition/OrganizationAffiliation version: 0.1.0 required: [identifier, period, organization, participatingOrganization]