PackagesCanonicalsLogsProblems
    Packages
    se.electronichealth.fhir.hvo.r5@0.5.0
    http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation
description: Location profile for HVO
package_name: se.electronichealth.fhir.hvo.r5
derivation: constraint
name: HVOLocation
type: Location
elements:
  description: {mustSupport: true, index: 23}
  address:
    mustSupport: true
    index: 24
    extensions:
      precinct:
        url: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct
        type: Extension
        short: 'A subsection of a municipality (sv: kommundel)'
        mustSupport: true
        index: 26
        elements:
          url: {mustSupport: true, index: 27}
          value:
            mustSupport: true
            choices: []
            index: 29
    elements:
      extension:
        index: 25
        slicing:
          slices:
            precinct:
              match: {}
              schema:
                type: Extension
                short: 'A subsection of a municipality (sv: kommundel)'
                mustSupport: true
                url: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct
                index: 26
                elements:
                  url: {mustSupport: true, index: 27}
                  value:
                    mustSupport: true
                    choices: []
                    index: 29
      type:
        pattern: {type: Code, value: physical}
        mustSupport: true
        index: 30
      line: {short: 'A line in an address, according to Swedish standard 637003:2025. For example: Sibeliusgången 17, Akalla, Stockholm', mustSupport: true, index: 31}
      city: {short: 'A postal area (sv: postort)', mustSupport: true, index: 32}
      district: {short: 'A municipality (sv: kommun)', mustSupport: true, index: 33}
      postalCode: {mustSupport: true, index: 34}
    required: [city, district, postalCode, extension, line, type]
  name: {mustSupport: true, index: 22}
  extension:
    index: 1
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        period:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocationPeriodExtension
            index: 2
            elements:
              url: {mustSupport: true, index: 3}
              value:
                mustSupport: true
                choices: []
                index: 5
              value[x]:
                elements:
                  start:
                    constraint:
                      hvo-dateTime-2: {human: DateTime should be submitted without timestamp, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation', severity: error, expression: $this.toString().contains('T') = false}
                    mustSupport: true
                    index: 6
                  end:
                    constraint:
                      hvo-dateTime-2: {human: DateTime should be submitted without timestamp, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation', severity: error, expression: $this.toString().contains('T') = false}
                    mustSupport: true
                    index: 7
            required: [value]
        positionSweref:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOSweref99PositionExtension
            index: 8
            extensions:
              longitude: {url: null, mustSupport: true, index: 9}
              latitude: {url: null, mustSupport: true, index: 10}
            elements:
              extension:
                mustSupport: true
                index: 9
                slicing:
                  slices:
                    longitude:
                      match: {}
                      schema: {mustSupport: true, index: 9}
                    latitude:
                      match: {}
                      schema: {mustSupport: true, index: 10}
  status:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/location-status'}
    mustSupport: true
    index: 21
  id: {mustSupport: true, index: 0}
  identifier:
    mustSupport: true
    index: 11
    slicing:
      rules: open
      ordered: false
      description: Slice on value based on the type code value
      discriminator:
      - {path: value, type: value}
      min: null
      max: 1
      slices:
        municipality:
          match: {value: null}
          schema:
            short: 'Identifier when Location is a municipality (sv: kommun)'
            mustSupport: true
            index: 12
            elements:
              system:
                pattern: {type: Uri, value: 'http://metadata.scb.se/classifications/RLK'}
                mustSupport: true
                index: 13
              value:
                binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-municipalities-scb'}
                mustSupport: true
                index: 14
            required: [value, system]
        county:
          match: {value: null}
          schema:
            short: 'Identifier when Location is a county (sv: län)'
            mustSupport: true
            index: 15
            elements:
              system:
                pattern: {type: Uri, value: 'http://metadata.scb.se/classifications/RLK'}
                mustSupport: true
                index: 16
              value:
                binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-counties-scb'}
                mustSupport: true
                index: 17
            required: [value, system]
        locationAddress:
          match: {value: null}
          schema:
            mustSupport: true
            index: 18
            elements:
              system:
                pattern: {type: Uri, value: 'https://electronichealth.se/identifier/locationAddressLm'}
                mustSupport: true
                index: 19
              value: {mustSupport: true, index: 20}
            required: [value, system]
  position:
    mustSupport: true
    index: 39
    elements:
      longitude: {mustSupport: true, index: 40}
      latitude: {mustSupport: true, index: 41}
  form:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/location-physical-type'}
    mustSupport: true
    index: 35
    elements:
      coding:
        mustSupport: true
        index: 36
        elements:
          system: {mustSupport: true, index: 37}
          code: {mustSupport: true, index: 38}
        required: [system, code]
    required: [coding]
  partOf:
    type: Reference
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation']
    index: 42
package_version: 0.5.0
extensions:
  period:
    url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocationPeriodExtension
    type: Extension
    mustSupport: true
    index: 2
    elements:
      url: {mustSupport: true, index: 3}
      value:
        mustSupport: true
        choices: []
        index: 5
      value[x]:
        elements:
          start:
            constraint:
              hvo-dateTime-2: {human: DateTime should be submitted without timestamp, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation', severity: error, expression: $this.toString().contains('T') = false}
            mustSupport: true
            index: 6
          end:
            constraint:
              hvo-dateTime-2: {human: DateTime should be submitted without timestamp, source: 'http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation', severity: error, expression: $this.toString().contains('T') = false}
            mustSupport: true
            index: 7
    required: [value]
  positionSweref:
    url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOSweref99PositionExtension
    type: Extension
    mustSupport: true
    index: 8
    extensions:
      longitude: {url: null, mustSupport: true, index: 9}
      latitude: {url: null, mustSupport: true, index: 10}
    elements:
      extension:
        mustSupport: true
        index: 9
        slicing:
          slices:
            longitude:
              match: {}
              schema: {mustSupport: true, index: 9}
            latitude:
              match: {}
              schema: {mustSupport: true, index: 10}
class: profile
kind: resource
url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation
base: http://hl7.org/fhir/StructureDefinition/Location
version: 0.1.0
required: [status]