PackagesCanonicalsLogsProblems
    Packages
    se.electronichealth.fhir.merier.r5@0.1.0-alpha
    http://electronichealth.se/fhir/meri/StructureDefinition/patient-se-meri
{
  "description": "Profile representing a patient",
  "_filename": "StructureDefinition-patient-se-meri.json",
  "package_name": "se.electronichealth.fhir.merier.r5",
  "date": null,
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "5.0.0",
  "name": "PatientSeMeRI",
  "abstract": false,
  "type": "Patient",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.1.0-alpha",
  "status": "retired",
  "id": "6bd915ab-69b3-4d18-9ce4-8531e3d959fa",
  "kind": "resource",
  "url": "http://electronichealth.se/fhir/meri/StructureDefinition/patient-se-meri",
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "id": "Patient.identifier",
      "max": "1",
      "min": 1,
      "path": "Patient.identifier",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "description": "Slice on Identifier based on the system value",
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "mustSupport": true
    }, {
      "id": "Patient.identifier.system",
      "min": 1,
      "path": "Patient.identifier.system",
      "mustSupport": true
    }, {
      "id": "Patient.identifier.value",
      "min": 1,
      "path": "Patient.identifier.value",
      "mustSupport": true
    }, {
      "id": "Patient.identifier:personalIdentityNumber",
      "max": "1",
      "min": 0,
      "path": "Patient.identifier",
      "sliceName": "personalIdentityNumber",
      "mustSupport": true
    }, {
      "id": "Patient.identifier:personalIdentityNumber.system",
      "path": "Patient.identifier.system",
      "fixedUri": "http://electronichealth.se/identifier/personnummer"
    }, {
      "id": "Patient.identifier:personalIdentityNumber.value",
      "path": "Patient.identifier.value",
      "constraint": [ {
        "key": "se-meri-personal-identity-number-value-1",
        "human": "A Swedish personal identity number (sv: personnummer) should follow format 19800103(-)2385",
        "source": "http://electronichealth.se/fhir/meri/StructureDefinition/patient-se-meri",
        "severity": "error",
        "expression": "$this.matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])-?\\\\d{4}$')"
      } ]
    }, {
      "id": "Patient.identifier:coordinationNumber",
      "max": "1",
      "min": 0,
      "path": "Patient.identifier",
      "sliceName": "coordinationNumber",
      "mustSupport": true
    }, {
      "id": "Patient.identifier:coordinationNumber.system",
      "path": "Patient.identifier.system",
      "fixedUri": "http://electronichealth.se/identifier/samordningsnummer"
    }, {
      "id": "Patient.identifier:coordinationNumber.value",
      "path": "Patient.identifier.value",
      "constraint": [ {
        "key": "se-meri-coordination-number-value-1",
        "human": "A Swedish coordination number (sv: samordningsnummer) should follow format 20190368(-)2399",
        "source": "http://electronichealth.se/fhir/meri/StructureDefinition/patient-se-meri",
        "severity": "error",
        "expression": "$this.matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(0[1-9]|1[0-2])([6-9][1-9])-?\\\\d{4}$')"
      } ]
    }, {
      "id": "Patient.link",
      "path": "Patient.link",
      "mustSupport": true
    }, {
      "id": "Patient.link.other",
      "path": "Patient.link.other",
      "type": [ {
        "code": "Reference",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean": false
        } ],
        "targetProfile": [ "http://electronichealth.se/fhir/meri/StructureDefinition/medical-record-se-meri" ]
      } ],
      "mustSupport": true
    }, {
      "id": "Patient.link.type",
      "path": "Patient.link.type",
      "fixedCode": "seealso",
      "mustSupport": true
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient"
}