PackagesCanonicalsLogsProblems
    Packages
    BC-BCY_IDS.01@1.0.0
    http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/RelatedPerson
{
  "description": null,
  "_filename": "RelatedPerson.StructureDefinition.json",
  "package_name": "BC-BCY_IDS.01",
  "date": null,
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "4.0.1",
  "name": "RelatedPerson",
  "abstract": false,
  "type": "RelatedPerson",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "1.0.0",
  "status": "draft",
  "id": "5ffbdf4b-b708-4c42-85cb-4dc603286996",
  "kind": "resource",
  "url": "http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/RelatedPerson",
  "version": null,
  "differential": {
    "element": [ {
      "id": "RelatedPerson.id",
      "min": 1,
      "path": "RelatedPerson.id",
      "comment": "See Mappings",
      "mapping": [ {
        "map": "CONSENT.CONSENT_DIRECTIVE_ID",
        "identity": "source-PIR"
      } ]
    }, {
      "id": "RelatedPerson.meta",
      "path": "RelatedPerson.meta"
    }, {
      "id": "RelatedPerson.meta.id",
      "max": "0",
      "path": "RelatedPerson.meta.id"
    }, {
      "id": "RelatedPerson.meta.versionId",
      "path": "RelatedPerson.meta.versionId",
      "comment": "Apply \"2024.05\".  This indicates the FHIR specs as of year 2024 May.  Add mapping for Consent Given By where ooption = Related Client, Not Specified."
    }, {
      "id": "RelatedPerson.meta.lastUpdated",
      "max": "0",
      "path": "RelatedPerson.meta.lastUpdated"
    }, {
      "id": "RelatedPerson.meta.source",
      "max": "0",
      "path": "RelatedPerson.meta.source"
    }, {
      "id": "RelatedPerson.meta.profile",
      "max": "1",
      "min": 1,
      "path": "RelatedPerson.meta.profile",
      "comment": "Apply \"http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/RelatedPerson\""
    }, {
      "id": "RelatedPerson.meta.security",
      "max": "0",
      "path": "RelatedPerson.meta.security"
    }, {
      "id": "RelatedPerson.meta.tag",
      "max": "0",
      "path": "RelatedPerson.meta.tag"
    }, {
      "id": "RelatedPerson.implicitRules",
      "max": "0",
      "path": "RelatedPerson.implicitRules"
    }, {
      "id": "RelatedPerson.language",
      "max": "0",
      "path": "RelatedPerson.language"
    }, {
      "id": "RelatedPerson.text",
      "max": "0",
      "path": "RelatedPerson.text"
    }, {
      "id": "RelatedPerson.identifier",
      "max": "0",
      "path": "RelatedPerson.identifier"
    }, {
      "id": "RelatedPerson.identifier.id",
      "max": "0",
      "path": "RelatedPerson.identifier.id"
    }, {
      "id": "RelatedPerson.identifier.use",
      "max": "0",
      "path": "RelatedPerson.identifier.use"
    }, {
      "id": "RelatedPerson.active",
      "max": "0",
      "path": "RelatedPerson.active"
    }, {
      "id": "RelatedPerson.patient.id",
      "max": "0",
      "path": "RelatedPerson.patient.id"
    }, {
      "id": "RelatedPerson.patient.reference",
      "min": 1,
      "path": "RelatedPerson.patient.reference",
      "comment": "See Mappings",
      "mapping": [ {
        "map": "fullURL + \"Patient/\" + (Patient ID)",
        "comment": "e.g. http://ehealth.bc.ca/panorama/fhir/Patient/59900999\"",
        "identity": "source-PIR"
      } ]
    }, {
      "id": "RelatedPerson.patient.type",
      "max": "0",
      "path": "RelatedPerson.patient.type"
    }, {
      "id": "RelatedPerson.patient.identifier",
      "max": "0",
      "path": "RelatedPerson.patient.identifier"
    }, {
      "id": "RelatedPerson.patient.display",
      "max": "0",
      "path": "RelatedPerson.patient.display"
    }, {
      "id": "RelatedPerson.relationship",
      "max": "1",
      "path": "RelatedPerson.relationship"
    }, {
      "id": "RelatedPerson.relationship.id",
      "max": "0",
      "path": "RelatedPerson.relationship.id"
    }, {
      "id": "RelatedPerson.relationship.coding",
      "max": "1",
      "path": "RelatedPerson.relationship.coding",
      "comment": "See Mappings",
      "mapping": [ {
        "map": "Code: CONSENT.CONSENT_DIRECTIVE.WHO_GAVE_RLTNSHP_CODE_CNCPT_ID",
        "identity": "source-PIR-Other"
      }, {
        "map": "Text: CONSENT.CONSENT_DIRECTIVE.WHO_GAVE_RELATIONSHIP_ID",
        "identity": "source-PIR-RelatedClient"
      } ]
    }, {
      "id": "RelatedPerson.relationship.coding.id",
      "max": "0",
      "path": "RelatedPerson.relationship.coding.id"
    }, {
      "id": "RelatedPerson.relationship.coding.system",
      "min": 1,
      "code": [ {
        "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-panorama-code"
      } ],
      "path": "RelatedPerson.relationship.coding.system"
    }, {
      "id": "RelatedPerson.relationship.coding.version",
      "max": "0",
      "path": "RelatedPerson.relationship.coding.version"
    }, {
      "id": "RelatedPerson.relationship.coding.code",
      "min": 1,
      "path": "RelatedPerson.relationship.coding.code",
      "comment": "Refer to IMMS Codeset spreadsheet: Consent - ConsentGivenByRelationship.  See Mappings.",
      "mapping": [ {
        "map": "CONSENT.CONSENT_DIRECTIVE.WHO_GAVE_RLTNSHP_CODE_CNCPT_ID",
        "identity": "source-PIR"
      } ]
    }, {
      "id": "RelatedPerson.relationship.coding.display",
      "min": 1,
      "path": "RelatedPerson.relationship.coding.display",
      "comment": "Refer to IMMS Codeset spreadsheet: Consent - ConsentGivenByRelationship"
    }, {
      "id": "RelatedPerson.relationship.coding.userSelected",
      "max": "0",
      "path": "RelatedPerson.relationship.coding.userSelected"
    }, {
      "id": "RelatedPerson.relationship.text",
      "path": "RelatedPerson.relationship.text",
      "comment": "See Mappings:  To be applied if PIR Consent Given By = Related Client. WHO_GAVE_RLTNSHP_CODE_CNCPT_ID = null and WHO_GAVE_RELATIONSHIP_ID has a value.",
      "mapping": [ {
        "map": "CONSENT.CONSENT_DIRECTIVE.WHO_GAVE_RELATIONSHIP_ID",
        "identity": "source-PIR-RelatedClient"
      } ]
    }, {
      "id": "RelatedPerson.name",
      "max": "1",
      "min": 1,
      "path": "RelatedPerson.name",
      "comment": "See Mappings. NOT SPECIFIED is applied when both WHO_GAVE_RLTNSHP_CODE_CNCPT_ID = null and WHO_GAVE_RELATIONSHIP_ID = null.",
      "mapping": [ {
        "map": "CONSENT.CONSENT_DIRECTIVE.WHO_GAVE_CONSENT",
        "identity": "source-PIR-Other"
      }, {
        "map": "Not Specified",
        "identity": "source-PIR-NotSpecified"
      }, {
        "map": "CLIENT.SUBJECT_RELATIONSHIP.LEFT_SUBJECT_ID",
        "identity": "source-PIR-relatedClient"
      } ]
    }, {
      "id": "RelatedPerson.name.id",
      "max": "0",
      "path": "RelatedPerson.name.id"
    }, {
      "id": "RelatedPerson.name.use",
      "max": "0",
      "path": "RelatedPerson.name.use"
    }, {
      "id": "RelatedPerson.name.text",
      "max": "0",
      "path": "RelatedPerson.name.text"
    }, {
      "id": "RelatedPerson.name.family",
      "min": 1,
      "path": "RelatedPerson.name.family"
    }, {
      "id": "RelatedPerson.name.given",
      "max": "1",
      "min": 1,
      "path": "RelatedPerson.name.given",
      "comment": "FIRST Name sends in first place of Given Name, MIDDLE Name sneds in second place of Given Name"
    }, {
      "id": "RelatedPerson.name.prefix",
      "max": "0",
      "path": "RelatedPerson.name.prefix"
    }, {
      "id": "RelatedPerson.name.suffix",
      "max": "0",
      "path": "RelatedPerson.name.suffix"
    }, {
      "id": "RelatedPerson.name.period",
      "max": "0",
      "path": "RelatedPerson.name.period"
    }, {
      "id": "RelatedPerson.telecom",
      "max": "0",
      "path": "RelatedPerson.telecom"
    }, {
      "id": "RelatedPerson.gender",
      "max": "0",
      "path": "RelatedPerson.gender"
    }, {
      "id": "RelatedPerson.birthDate",
      "max": "0",
      "path": "RelatedPerson.birthDate"
    }, {
      "id": "RelatedPerson.address",
      "max": "0",
      "path": "RelatedPerson.address"
    }, {
      "id": "RelatedPerson.photo",
      "max": "0",
      "path": "RelatedPerson.photo"
    }, {
      "id": "RelatedPerson.period",
      "max": "0",
      "path": "RelatedPerson.period"
    }, {
      "id": "RelatedPerson.communication",
      "max": "0",
      "path": "RelatedPerson.communication"
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
}