PackagesCanonicalsLogsProblems
    Packages
    se.electronichealth.fhir.nppr.r5@0.1.0-alpha
    http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRRelatedPerson
{
  "description": "NPPRRelatedPerson profile for NPPR",
  "_filename": "StructureDefinition-NPPRRelatedPerson.json",
  "package_name": "se.electronichealth.fhir.nppr.r5",
  "date": null,
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "5.0.0",
  "name": "NPPRRelatedPerson",
  "mapping": [ {
    "uri": "NPPRPersonMedRelationTillVardOchOmsorgstagareLogical",
    "identity": "NPPRRelatedPersonToNPPRPersonMRelTillVardOchOmsorgstagareLogical"
  } ],
  "abstract": false,
  "type": "RelatedPerson",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.1.0-alpha",
  "status": "active",
  "id": "f864d9d4-07d5-4329-9f4b-40357b44d129",
  "kind": "resource",
  "url": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRRelatedPerson",
  "version": "0.1",
  "differential": {
    "element": [ {
      "id": "RelatedPerson.meta",
      "path": "RelatedPerson.meta",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.meta.security",
      "path": "RelatedPerson.meta.security",
      "mapping": [ {
        "map": "sekretessmarkering",
        "identity": "NPPRRelatedPersonToNPPRPersonMRelTillVardOchOmsorgstagareLogical"
      }, {
        "map": "skyddadFolkbokforing",
        "identity": "NPPRRelatedPersonToNPPRPersonMRelTillVardOchOmsorgstagareLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "RelatedPerson.meta.security.code",
      "path": "RelatedPerson.meta.security.code",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.identifier",
      "max": "1",
      "path": "RelatedPerson.identifier",
      "mapping": [ {
        "map": "id",
        "identity": "NPPRRelatedPersonToNPPRPersonMRelTillVardOchOmsorgstagareLogical"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "description": "Slice on Identifier based on the system value",
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "mustSupport": true
    }, {
      "id": "RelatedPerson.identifier.system",
      "min": 1,
      "path": "RelatedPerson.identifier.system",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.identifier.value",
      "min": 1,
      "path": "RelatedPerson.identifier.value",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.identifier:coordinationNumber",
      "max": "1",
      "min": 0,
      "path": "RelatedPerson.identifier",
      "sliceName": "coordinationNumber",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.identifier:coordinationNumber.system",
      "min": 1,
      "path": "RelatedPerson.identifier.system",
      "fixedUri": "http://electronichealth.se/identifier/samordningsnummer",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.identifier:coordinationNumber.value",
      "min": 1,
      "path": "RelatedPerson.identifier.value",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.identifier:personalIdentityNumber",
      "max": "1",
      "min": 0,
      "path": "RelatedPerson.identifier",
      "sliceName": "personalIdentityNumber",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.identifier:personalIdentityNumber.system",
      "path": "RelatedPerson.identifier.system",
      "fixedUri": "http://electronichealth.se/identifier/personnummer"
    }, {
      "id": "RelatedPerson.patient",
      "path": "RelatedPerson.patient",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRPatient" ]
      } ],
      "mapping": [ {
        "map": "iForhallandeTill(VardOchOmsorgstagareLogical)",
        "identity": "NPPRRelatedPersonToNPPRPersonMRelTillVardOchOmsorgstagareLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "RelatedPerson.relationship",
      "max": "1",
      "min": 1,
      "path": "RelatedPerson.relationship",
      "binding": {
        "strength": "required",
        "valueSet": "http://electronichealth.se/fhir/NPPR/ValueSet/nppr-related-person-role"
      },
      "mapping": [ {
        "map": "roll",
        "identity": "NPPRRelatedPersonToNPPRPersonMRelTillVardOchOmsorgstagareLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "RelatedPerson.relationship.coding",
      "max": "1",
      "min": 1,
      "path": "RelatedPerson.relationship.coding",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.relationship.coding.system",
      "min": 1,
      "path": "RelatedPerson.relationship.coding.system",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.relationship.coding.code",
      "min": 1,
      "path": "RelatedPerson.relationship.coding.code",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.name",
      "max": "1",
      "path": "RelatedPerson.name",
      "type": [ {
        "code": "HumanName",
        "profile": [ "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRHumanName" ]
      } ],
      "mustSupport": true
    }, {
      "id": "RelatedPerson.name.family",
      "path": "RelatedPerson.name.family",
      "mapping": [ {
        "map": "efternamn",
        "identity": "NPPRRelatedPersonToNPPRPersonMRelTillVardOchOmsorgstagareLogical"
      } ]
    }, {
      "id": "RelatedPerson.name.given",
      "path": "RelatedPerson.name.given",
      "mapping": [ {
        "map": "fornamn",
        "identity": "NPPRRelatedPersonToNPPRPersonMRelTillVardOchOmsorgstagareLogical"
      } ]
    }, {
      "id": "RelatedPerson.telecom",
      "path": "RelatedPerson.telecom",
      "type": [ {
        "code": "ContactPoint",
        "profile": [ "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRContactPoint" ]
      } ],
      "constraint": [ {
        "key": "nppr-telecom-phone-1",
        "human": "If telecom.system = #phone, value should follow format +46123456789",
        "source": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRRelatedPerson",
        "severity": "warning",
        "expression": "value.matches('^\\\\+[1-9][0-9]+$') or system != 'phone'"
      }, {
        "key": "nppr-telecom-url-1",
        "human": "If telecom.system = #url, value should follow valid format. Example: https://example.com",
        "source": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRRelatedPerson",
        "severity": "warning",
        "expression": "value.matches('(https?|ftp)://(-\\\\.)?([^\\\\s/?\\\\.#-]+\\\\.?)+(/[^\\\\s]*)?$') or system != 'url'"
      }, {
        "key": "nppr-telecom-email-1",
        "human": "If telecom.system = #email, value should follow valid format Example: test@test.com",
        "source": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRRelatedPerson",
        "severity": "warning",
        "expression": "value.matches('^[\\\\w.-]{1,64}@(?!.{254})[\\\\w.-]+\\\\.[A-Za-z]{2,4}$') or system != 'email'"
      } ],
      "mustSupport": true
    }, {
      "id": "RelatedPerson.address",
      "path": "RelatedPerson.address",
      "type": [ {
        "code": "Address",
        "profile": [ "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRAddress" ]
      } ],
      "mapping": [ {
        "map": "har(KontaktuppgiftLogical)",
        "identity": "NPPRRelatedPersonToNPPRPersonMRelTillVardOchOmsorgstagareLogical"
      } ],
      "mustSupport": true
    }, {
      "id": "RelatedPerson.address.extension",
      "min": 1,
      "path": "RelatedPerson.address.extension"
    }, {
      "id": "RelatedPerson.address.extension:officialAddressType",
      "min": 1,
      "path": "RelatedPerson.address.extension",
      "sliceName": "officialAddressType"
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
}