PackagesCanonicalsLogsProblems
    Packages
    se.electronichealth.fhir.hvo.r5@0.1.3-alpha
    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: 38
  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: 28
    elements:
      coding:
        mustSupport: true
        index: 29
        elements:
          system: {mustSupport: true, index: 30}
          version: {mustSupport: true, index: 31}
          code: {mustSupport: true, index: 32}
        required: [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: 33
            elements:
              coding:
                pattern:
                  type: Coding
                  value: {code: '43741000', system: 'http://snomed.info/sct', version: 'http://snomed.info/sct/45991000052106'}
                mustSupport: true
                index: 34
                elements:
                  system: {mustSupport: true, index: 35}
                  version: {mustSupport: true, index: 36}
                  code: {mustSupport: true, index: 37}
                required: [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:
                short: 'The period during which the organization is/was registered with the given status in SCB:s Business Register (sv: Företagsregister). '
                mustSupport: true
                choices: []
                index: 11
              value[x]:
                elements:
                  start:
                    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: 12
                  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: 13
        additionalRelationship:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnitAdditionalRelationshipExtension
            index: 14
            elements:
              url: {mustSupport: true, index: 15}
              value:
                mustSupport: true
                choices: []
                index: 17
            required: [value]
  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: 39
  id: {mustSupport: true, index: 0}
  identifier:
    short: Identifier for the organizational unit, e.g. HSA ID from the HSA Catalog Service.
    mustSupport: true
    index: 18
    elements:
      system: {mustSupport: true, index: 19}
      value: {mustSupport: true, index: 20}
      period:
        mustSupport: true
        index: 21
        elements:
          start: {mustSupport: true, index: 22}
          end: {mustSupport: true, index: 23}
        required: [start]
    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:
            array: true
            index: 24
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:1.2.752.29.4.19'}
                mustSupport: true
                index: 25
              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: 26
              period: {mustSupport: true, index: 27}
            required: [value, system]
  qualification:
    mustSupport: true
    index: 74
    elements:
      identifier:
        mustSupport: true
        index: 75
        elements:
          system: {mustSupport: true, index: 76}
          value: {mustSupport: true, index: 77}
        required: [value, system]
      code:
        mustSupport: true
        index: 78
        elements:
          coding:
            mustSupport: true
            index: 79
            elements:
              system: {mustSupport: true, index: 80}
              code: {mustSupport: true, index: 81}
            required: [system, code]
        required: [coding]
      period:
        mustSupport: true
        index: 82
        elements:
          start: {mustSupport: true, index: 83}
          end: {mustSupport: true, index: 84}
        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: 69
    elements:
      reference: {mustSupport: true, index: 70}
      identifier:
        mustSupport: true
        index: 71
        elements:
          system: {mustSupport: true, index: 72}
          value: {mustSupport: true, index: 73}
        required: [value, system]
  contact:
    mustSupport: true
    index: 40
    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: 41
            elements:
              purpose:
                binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-contact-purpose'}
                mustSupport: true
                index: 42
                elements:
                  coding:
                    mustSupport: true
                    index: 43
                    elements:
                      system: {mustSupport: true, index: 44}
                      code: {mustSupport: true, index: 45}
                    required: [system, code]
                required: [coding]
              name: {mustSupport: true, index: 46}
              telecom: {index: 47}
              address:
                mustSupport: true
                index: 48
                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: 49
                  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: 50
                  postalCode: {mustSupport: true, index: 51}
                  country: {mustSupport: true, index: 52}
              period:
                mustSupport: true
                index: 53
                elements:
                  start:
                    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: 54
                  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: 55
                required: [start]
            required: [address, period, purpose]
        telecomContact:
          match: {}
          schema:
            mustSupport: true
            array: true
            index: 56
            elements:
              purpose:
                binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-contact-purpose'}
                mustSupport: true
                index: 57
                elements:
                  coding:
                    mustSupport: true
                    index: 58
                    elements:
                      system: {mustSupport: true, index: 59}
                      code: {mustSupport: true, index: 60}
                    required: [system, code]
                required: [coding]
              name: {mustSupport: true, index: 61}
              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: 62
                elements:
                  system: {mustSupport: true, index: 63}
                  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: 64
                required: [value, system]
              address: {index: 65}
              period:
                mustSupport: true
                index: 66
                elements:
                  start:
                    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: 67
                  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: 68
                required: [start]
            required: [telecom, period, purpose]
package_version: 0.1.3-alpha
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:
        short: 'The period during which the organization is/was registered with the given status in SCB:s Business Register (sv: Företagsregister). '
        mustSupport: true
        choices: []
        index: 11
      value[x]:
        elements:
          start:
            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: 12
          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: 13
  additionalRelationship:
    url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationalUnitAdditionalRelationshipExtension
    type: Extension
    mustSupport: true
    index: 14
    elements:
      url: {mustSupport: true, index: 15}
      value:
        mustSupport: true
        choices: []
        index: 17
    required: [value]
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]