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} period: mustSupport: true index: 1 elements: start: {short: The moment when the affiliation becomes active, mustSupport: true, index: 2} end: {short: The moment when the affiliation becomes inactive or completed. Do not use if it is unknown, mustSupport: true, index: 3} required: [start] organization: type: Reference short: Organization which ordered the task mustSupport: true refers: ['http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganization'] index: 4 participatingOrganization: type: Reference short: Organization which performs the task mustSupport: true refers: ['http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganization'] index: 5 code: binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-organization-affiliation-business-category'} mustSupport: true index: 6 elements: coding: mustSupport: true index: 7 elements: system: {mustSupport: true, index: 8} code: {mustSupport: true, index: 9} required: [system, code] text: {mustSupport: true, index: 10} healthcareService: type: Reference mustSupport: true refers: ['http://electronichealth.se/fhir/hvo/StructureDefinition/HVOService'] index: 11 contact: mustSupport: true index: 12 elements: 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: 13 elements: system: binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/contact-point-system'} mustSupport: true index: 14 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: 15 period: mustSupport: true index: 16 elements: start: {mustSupport: true, index: 17} end: {mustSupport: true, index: 18} required: [start] required: [value, period, system] package_version: 0.1.2-alpha class: profile kind: resource url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation base: http://hl7.org/fhir/StructureDefinition/OrganizationAffiliation version: 0.1.0 required: [period, organization, participatingOrganization]