PackagesCanonicalsLogsProblems
    Packages
    se.electronichealth.fhir.hvo.r5@0.5.1
    http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit
description: HVOOrganizationalUnit contains information about a formally defined entity which constitutes a part of an organization.
package_name: se.electronichealth.fhir.hvo.r5
derivation: constraint
name: HVOOrganizationalUnit
type: Organization
elements:
  name:
    short: The official name of the organizational unit.
    constraint:
      hvo-organization-name-1: {human: Name of Organization should have max length of 200 characters, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit', severity: error, expression: $this.length() <= 200}
    mustSupport: true
    index: 37
  type:
    short: Type of organizational unit. An organizational unit can be categorized in multiple ways depending on the purpose of the categorization.
    binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-organizational-unit-type'}
    mustSupport: true
    index: 27
    elements:
      coding:
        mustSupport: true
        index: 28
        elements:
          system: {mustSupport: true, index: 29}
          version: {mustSupport: true, index: 30}
          code: {mustSupport: true, index: 31}
        required: [system, code]
    required: [coding]
    slicing:
      rules: open
      ordered: false
      description: Slice on CodeableConcept based on the coding
      discriminator:
      - {path: coding, type: value}
      min: null
      slices:
        careUnit:
          match:
            coding: {code: '43741000', system: 'http://snomed.info/sct', version: 'http://snomed.info/sct/45991000052106'}
          schema:
            binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-organizational-unit-type'}
            mustSupport: true
            index: 32
            elements:
              coding:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: '43741000', system: 'http://snomed.info/sct', version: 'http://snomed.info/sct/45991000052106'}
                index: 33
                elements:
                  system: {mustSupport: true, index: 34}
                  version: {mustSupport: true, index: 35}
                  code: {mustSupport: true, index: 36}
                required: [system, code]
            required: [coding]
  extension:
    index: 3
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        organizationActive:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationActiveStatusExtension
            index: 4
            elements:
              url: {mustSupport: true, index: 5}
              value:
                short: 'The status which the organization is registered with in SCB:s Business Register (sv: Företagsregister), where true implies ''active'' and false implies ''inactive''.'
                mustSupport: true
                choices: []
                index: 7
            required: [value]
        period:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/organization-period
            index: 8
            elements:
              url: {mustSupport: true, index: 9}
              value:
                elements:
                  start:
                    extensions: {}
                    elements:
                      extension:
                        elements:
                          value:
                            mustSupport: true
                            pattern: {type: Code, value: unknown}
                            choices: []
                            index: 17
              value[x]:
                elements:
                  end:
                    constraint:
                      hvo-dateTime-2: {human: DateTime should be submitted without timestamp, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit', severity: error, expression: $this.toString().contains('T') = false}
                    mustSupport: true
                    index: 18
  contained:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: contained, type: type}
      min: null
      slices:
        HVOBusiness:
          match: {}
          schema: {short: Business which the organizational unit conducts, type: HealthcareService, mustSupport: true, index: 2}
          min: 0
          max: 1
  alias:
    short: A name of the organizational unit that is commonly used and is not the official name, e.g. an abbreviation of the official name.
    constraint:
      hvo-organization-alias-1: {human: Alias of Organization should have max length of 200 characters, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit', severity: error, expression: $this.length() <= 200}
    mustSupport: true
    index: 38
  id: {mustSupport: true, index: 0}
  identifier:
    short: Identifier for the organizational unit
    mustSupport: true
    index: 19
    elements:
      system: {mustSupport: true, index: 20}
      value: {mustSupport: true, index: 21}
    required: [value, system]
    slicing:
      rules: open
      ordered: false
      description: Slice identifier to express different kinds of identifiers
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        hsaid:
          match: {system: 'urn:oid:1.2.752.29.4.19'}
          schema:
            short: HSA ID from the HSA Catalog Service
            mustSupport: true
            array: true
            index: 22
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:1.2.752.29.4.19'}
                mustSupport: true
                index: 23
              value:
                constraint:
                  hvo-organization-hsa-identifier-value-2: {human: 'If identifier.system = urn:oid:1.2.752.29.4.19, value should follow format for HSA ID: SE1234567890-ABC1. Characters å, ä, ö, @ not valid.', source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit', severity: error, expression: '$this.matches(''^SE[0-9]{10}-[A-za-z0-9]+$'')'}
                  hvo-organization-hsa-identifier-value-1: {human: 'If identifier.system = urn:oid:1.2.752.29.4.19, value should have max length of 31 characters', source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit', severity: error, expression: $this.length() <= 31}
                mustSupport: true
                index: 24
            required: [value, system]
        organizationalUnitId:
          match: {system: 'http://electronichealth.se/identifier/organizationalUnit'}
          schema:
            mustSupport: true
            index: 25
            elements:
              system:
                pattern: {type: Uri, value: 'http://electronichealth.se/identifier/organizationalUnit'}
                index: 26
  qualification:
    mustSupport: true
    index: 62
    elements:
      identifier:
        mustSupport: true
        index: 63
        elements:
          system: {mustSupport: true, index: 64}
          value: {mustSupport: true, index: 65}
        required: [value, system]
      code:
        mustSupport: true
        index: 66
        elements:
          coding:
            mustSupport: true
            index: 67
            elements:
              system: {mustSupport: true, index: 68}
              code: {mustSupport: true, index: 69}
            required: [system, code]
        required: [coding]
      period:
        mustSupport: true
        index: 70
        elements:
          start: {mustSupport: true, index: 71}
          end: {mustSupport: true, index: 72}
        required: [start]
    required: [identifier, period]
  partOf:
    type: Reference
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganization', 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit']
    index: 61
  contact:
    mustSupport: true
    index: 39
    slicing:
      rules: open
      ordered: false
      description: Slice contact on whether it has a telecom (vs address)
      discriminator:
      - {path: telecom, type: exists}
      min: null
      slices:
        addressContact:
          match: {}
          schema:
            mustSupport: true
            array: true
            index: 40
            elements:
              purpose:
                binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-contact-purpose'}
                mustSupport: true
                index: 41
                elements:
                  coding:
                    mustSupport: true
                    index: 42
                    elements:
                      system: {mustSupport: true, index: 43}
                      code: {mustSupport: true, index: 44}
                    required: [system, code]
                required: [coding]
              telecom: {index: 45}
              address:
                mustSupport: true
                index: 46
                elements:
                  line:
                    short: "Street name, number, direction & P.O. Box etc.\r\nThis repeating element order: The order in which lines should appear in an address label"
                    constraint:
                      hvo-address-line-1: {human: A line in an address should have max length of 128 characters, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit', severity: error, expression: $this.length() <= 128}
                    mustSupport: true
                    index: 47
                  city:
                    constraint:
                      hvo-address-city-1: {human: A city in an address should have a max length of 50 characters, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit', severity: error, expression: $this.length() <= 50}
                    mustSupport: true
                    index: 48
                  postalCode: {mustSupport: true, index: 49}
                  country: {mustSupport: true, index: 50}
            required: [address, purpose]
        telecomContact:
          match: {}
          schema:
            mustSupport: true
            array: true
            index: 51
            elements:
              purpose:
                binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-contact-purpose'}
                mustSupport: true
                index: 52
                elements:
                  coding:
                    mustSupport: true
                    index: 53
                    elements:
                      system: {mustSupport: true, index: 54}
                      code: {mustSupport: true, index: 55}
                    required: [system, code]
                required: [coding]
              name: {mustSupport: true, index: 56}
              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/HVOOrganizationalUnit', 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/HVOOrganizationalUnit', 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/HVOOrganizationalUnit', 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/HVOOrganizationalUnit', 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/HVOOrganizationalUnit', 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/HVOOrganizationalUnit', severity: error, expression: 'value.matches(''^\\+[1-9][0-9]+$'') or (system != ''phone'' and system != ''fax'')'}
                mustSupport: true
                index: 57
                elements:
                  system: {mustSupport: true, index: 58}
                  value:
                    constraint:
                      hvo-telecom-value-1: {human: A telecom value should have max length of 2000 characters, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit', severity: error, expression: $this.length() <= 2000}
                    mustSupport: true
                    index: 59
                required: [value, system]
              address: {index: 60}
            required: [telecom, purpose]
package_version: 0.5.1
extensions:
  organizationActive:
    url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationActiveStatusExtension
    type: Extension
    mustSupport: true
    index: 4
    elements:
      url: {mustSupport: true, index: 5}
      value:
        short: 'The status which the organization is registered with in SCB:s Business Register (sv: Företagsregister), where true implies ''active'' and false implies ''inactive''.'
        mustSupport: true
        choices: []
        index: 7
    required: [value]
  period:
    url: http://hl7.org/fhir/StructureDefinition/organization-period
    type: Extension
    mustSupport: true
    index: 8
    elements:
      url: {mustSupport: true, index: 9}
      value:
        elements:
          start:
            extensions: {}
            elements:
              extension:
                elements:
                  value:
                    mustSupport: true
                    pattern: {type: Code, value: unknown}
                    choices: []
                    index: 17
      value[x]:
        elements:
          end:
            constraint:
              hvo-dateTime-2: {human: DateTime should be submitted without timestamp, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit', severity: error, expression: $this.toString().contains('T') = false}
            mustSupport: true
            index: 18
class: profile
kind: resource
url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnit
base: http://hl7.org/fhir/StructureDefinition/Organization
version: 0.1.0
required: [extension, partOf]