PackagesCanonicalsLogsProblems
    Packages
    se.electronichealth.fhir.hvo.r5@1.0.0-beta.1
    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: 27}
  address:
    mustSupport: true
    index: 28
    extensions:
      precinct: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct', min: 1, max: 1, type: Extension, short: 'A subsection of a municipality (sv: kommundel)', mustSupport: true, index: 30}
    elements:
      extension:
        index: 29
        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: 30}
              min: 1
              max: 1
      type:
        pattern: {type: Code, value: physical}
        mustSupport: true
        index: 31
      line: {short: 'A line in an address, according to Swedish standard 637003:2025. For example: Sibeliusgången 17, Akalla, Stockholm', mustSupport: true, index: 32}
      city: {short: 'A postal area (sv: postort)', mustSupport: true, index: 33}
      district: {short: 'A municipality (sv: kommun)', mustSupport: true, index: 34}
      postalCode: {mustSupport: true, index: 35}
    required: [city, district, postalCode, extension, line, type]
  name: {index: 26}
  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:
              easting:
                url: null
                index: 9
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 11
                required: [value]
              northing:
                url: null
                index: 12
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 14
                required: [value]
            elements:
              extension:
                index: 9
                slicing:
                  slices:
                    easting:
                      match: {}
                      schema:
                        index: 9
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 11
                        required: [value]
                    northing:
                      match: {}
                      schema:
                        index: 12
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 14
                        required: [value]
  status:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/location-status'}
    index: 25
  id: {index: 0}
  identifier:
    index: 15
    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)'
            index: 16
            elements:
              system:
                pattern: {type: Uri, value: 'http://metadata.scb.se/classifications/RLK'}
                mustSupport: true
                index: 17
              value:
                binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-municipalities-scb'}
                index: 18
            required: [value]
        county:
          match: {value: null}
          schema:
            short: 'Identifier when Location is a county (sv: län)'
            index: 19
            elements:
              system:
                pattern: {type: Uri, value: 'http://metadata.scb.se/classifications/RLK'}
                mustSupport: true
                index: 20
              value:
                binding: {strength: required, valueSet: 'http://electronichealth.se/hvo/ValueSet/hvo-counties-scb'}
                index: 21
            required: [value]
        locationAddress:
          match: {value: null}
          schema:
            mustSupport: true
            index: 22
            elements:
              system:
                pattern: {type: Uri, value: 'https://electronichealth.se/identifier/locationAddressLm'}
                mustSupport: true
                index: 23
              value: {mustSupport: true, index: 24}
            required: [value, system]
  position:
    mustSupport: true
    index: 40
    elements:
      longitude: {mustSupport: true, index: 41}
      latitude: {mustSupport: true, index: 42}
  form:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/location-physical-type'}
    mustSupport: true
    index: 36
    elements:
      coding:
        mustSupport: true
        index: 37
        elements:
          system: {mustSupport: true, index: 38}
          code: {mustSupport: true, index: 39}
        required: [system, code]
    required: [coding]
  partOf:
    type: Reference
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation']
    index: 43
package_version: 1.0.0-beta.1
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:
      easting:
        url: null
        index: 9
        elements:
          value:
            mustSupport: true
            choices: []
            index: 11
        required: [value]
      northing:
        url: null
        index: 12
        elements:
          value:
            mustSupport: true
            choices: []
            index: 14
        required: [value]
    elements:
      extension:
        index: 9
        slicing:
          slices:
            easting:
              match: {}
              schema:
                index: 9
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 11
                required: [value]
            northing:
              match: {}
              schema:
                index: 12
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 14
                required: [value]
class: profile
kind: resource
url: http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation
base: http://hl7.org/fhir/StructureDefinition/Location
version: 0.1.0
required: [id, status]