PackagesCanonicalsLogsProblems
    Packages
    se.electronichealth.fhir.hvo.r5@0.1.0-alpha
    http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation
{
  "description": "Location profile for HVO",
  "_filename": "StructureDefinition-HVOLocation.json",
  "package_name": "se.electronichealth.fhir.hvo.r5",
  "date": null,
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "5.0.0",
  "name": "HVOLocation",
  "mapping": [ {
    "uri": "HVOPlatsLogical",
    "identity": "HVOLocationToHVOPlatsLogical"
  } ],
  "abstract": false,
  "type": "Location",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.1.0-alpha",
  "status": "draft",
  "id": "d76cd1b2-9629-4530-8607-193264cf02d3",
  "kind": "resource",
  "url": "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation",
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "id": "Location.id",
      "path": "Location.id",
      "mustSupport": true
    }, {
      "id": "Location.extension",
      "min": 1,
      "path": "Location.extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "Location.extension:period",
      "max": "1",
      "min": 1,
      "path": "Location.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocationPeriodExtension" ]
      } ],
      "sliceName": "period",
      "mustSupport": true
    }, {
      "id": "Location.extension:period.url",
      "path": "Location.extension.url",
      "mustSupport": true
    }, {
      "id": "Location.extension:period.value[x]",
      "min": 1,
      "path": "Location.extension.value[x]",
      "mustSupport": true
    }, {
      "id": "Location.extension:period.value[x].start",
      "min": 1,
      "path": "Location.extension.value[x].start",
      "mapping": [ {
        "map": "giltigFrom",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "constraint": [ {
        "key": "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
    }, {
      "id": "Location.extension:period.value[x].end",
      "path": "Location.extension.value[x].end",
      "mapping": [ {
        "map": "giltigTom",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "constraint": [ {
        "key": "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
    }, {
      "id": "Location.extension:positionSweref",
      "max": "1",
      "min": 0,
      "path": "Location.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOSweref99PositionExtension" ]
      } ],
      "mapping": [ {
        "map": "harPosition(HVOPositionLogical)",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "sliceName": "positionSweref",
      "mustSupport": true
    }, {
      "id": "Location.extension:positionSweref.extension:longitude",
      "path": "Location.extension.extension",
      "sliceName": "longitude",
      "mustSupport": true
    }, {
      "id": "Location.extension:positionSweref.extension:latitude",
      "path": "Location.extension.extension",
      "sliceName": "latitude",
      "mustSupport": true
    }, {
      "id": "Location.identifier",
      "max": "1",
      "path": "Location.identifier",
      "mapping": [ {
        "map": "id",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "description": "Slice on value based on the type code value",
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "mustSupport": true
    }, {
      "id": "Location.identifier:municipality",
      "max": "1",
      "min": 0,
      "path": "Location.identifier",
      "short": "Identifier when Location is a municipality (sv: kommun)",
      "mapping": [ {
        "map": "kommunkod",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "sliceName": "municipality",
      "mustSupport": true
    }, {
      "id": "Location.identifier:municipality.system",
      "min": 1,
      "path": "Location.identifier.system",
      "patternUri": "dummy.se/identifier/hvo-municipalities-scb",
      "mustSupport": true
    }, {
      "id": "Location.identifier:municipality.value",
      "min": 1,
      "path": "Location.identifier.value",
      "binding": {
        "strength": "required",
        "valueSet": "http://electronichealth.se/hvo/ValueSet/hvo-municipalities-scb"
      },
      "mustSupport": true
    }, {
      "id": "Location.identifier:county",
      "max": "1",
      "min": 0,
      "path": "Location.identifier",
      "short": "Identifier when Location is a county (sv: län)",
      "mapping": [ {
        "map": "lanskod",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "sliceName": "county",
      "mustSupport": true
    }, {
      "id": "Location.identifier:county.system",
      "min": 1,
      "path": "Location.identifier.system",
      "patternUri": "dummy.se/identifier/hvo-counties-scb",
      "mustSupport": true
    }, {
      "id": "Location.identifier:county.value",
      "min": 1,
      "path": "Location.identifier.value",
      "binding": {
        "strength": "required",
        "valueSet": "http://electronichealth.se/hvo/ValueSet/hvo-counties-scb"
      },
      "mustSupport": true
    }, {
      "id": "Location.status",
      "min": 1,
      "path": "Location.status",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/location-status"
      },
      "mapping": [ {
        "map": "status",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "Location.name",
      "path": "Location.name",
      "mapping": [ {
        "map": "namn",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "Location.description",
      "path": "Location.description",
      "mapping": [ {
        "map": "beskrivning",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "Location.type",
      "path": "Location.type",
      "short": "Code for functionality of location.",
      "binding": {
        "strength": "required",
        "valueSet": "http://electronichealth.se/hvo/ValueSet/hvo-location-functionality"
      },
      "mapping": [ {
        "map": "funktion",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "Location.type.coding",
      "max": "1",
      "min": 1,
      "path": "Location.type.coding",
      "mustSupport": true
    }, {
      "id": "Location.type.coding.system",
      "min": 1,
      "path": "Location.type.coding.system",
      "mustSupport": true
    }, {
      "id": "Location.type.coding.code",
      "min": 1,
      "path": "Location.type.coding.code",
      "mustSupport": true
    }, {
      "id": "Location.address",
      "path": "Location.address",
      "mustSupport": true
    }, {
      "id": "Location.address.type",
      "min": 1,
      "path": "Location.address.type",
      "fixedCode": "physical",
      "mustSupport": true
    }, {
      "id": "Location.address.line",
      "min": 1,
      "path": "Location.address.line",
      "short": "A line in an address, according to Swedish standard SS 637003:2015.\r\n For example: \r\nBacken Norrgården 1B, \r\nHedesunda, Gävle.\r\nThis repeating element order: The order in which lines should appear in an address label",
      "mapping": [ {
        "map": "adressrad",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "constraint": [ {
        "key": "hvo-address-line-1",
        "human": "A line in an address should have max length of 128 characters",
        "source": "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation",
        "severity": "error",
        "expression": "$this.length() <= 128"
      } ],
      "mustSupport": true
    }, {
      "id": "Location.form",
      "path": "Location.form",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type"
      },
      "mapping": [ {
        "map": "typ",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "Location.form.coding",
      "max": "1",
      "min": 1,
      "path": "Location.form.coding",
      "mustSupport": true
    }, {
      "id": "Location.form.coding.system",
      "min": 1,
      "path": "Location.form.coding.system",
      "mustSupport": true
    }, {
      "id": "Location.form.coding.code",
      "min": 1,
      "path": "Location.form.coding.code",
      "mustSupport": true
    }, {
      "id": "Location.position",
      "path": "Location.position",
      "mapping": [ {
        "map": "harPosition(HVOPositionWGS84Logical)",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "Location.position.longitude",
      "path": "Location.position.longitude",
      "mustSupport": true
    }, {
      "id": "Location.position.latitude",
      "path": "Location.position.latitude",
      "mustSupport": true
    }, {
      "id": "Location.partOf",
      "path": "Location.partOf",
      "type": [ {
        "code": "Reference",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean": true
        } ],
        "targetProfile": [ "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOLocation" ]
      } ],
      "mapping": [ {
        "map": "arEnDelAv(HVOPlatsLogical)",
        "identity": "HVOLocationToHVOPlatsLogical"
      } ],
      "mustSupport": true
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location"
}