{
    "Account": {
        "Patient": ["subject", "guarantor.party"],
        "Device": ["subject"],
        "Practitioner": ["subject"],
        "PractitionerRole": ["subject"],
        "Location": ["subject"],
        "HealthcareService": ["subject"],
        "Organization": ["subject", "owner", "guarantor.party"],
        "Coverage": ["coverage.coverage"],
        "RelatedPerson": ["guarantor.party"],
        "Account": ["partOf"]
    },
    "ActivityDefinition": {
        "Group": ["subjectReference"],
        "Location": ["location"],
        "Medication": ["productReference"],
        "Substance": ["productReference"],
        "SpecimenDefinition": ["specimenRequirement"],
        "ObservationDefinition": ["observationRequirement", "observationResultRequirement"]
    },
    "AdverseEvent": {
        "Patient": ["subject", "recorder"],
        "Group": ["subject"],
        "Practitioner": ["subject", "recorder", "contributor", "suspectEntity.causality.author"],
        "RelatedPerson": ["subject", "recorder"],
        "Encounter": ["encounter"],
        "Condition": ["resultingCondition", "subjectMedicalHistory"],
        "Location": ["location"],
        "PractitionerRole": ["recorder", "contributor", "suspectEntity.causality.author"],
        "Device": ["contributor", "suspectEntity.instance"],
        "Immunization": ["suspectEntity.instance", "subjectMedicalHistory"],
        "Procedure": ["suspectEntity.instance", "subjectMedicalHistory"],
        "Substance": ["suspectEntity.instance"],
        "Medication": ["suspectEntity.instance"],
        "MedicationAdministration": ["suspectEntity.instance"],
        "MedicationStatement": ["suspectEntity.instance"],
        "Observation": ["subjectMedicalHistory"],
        "AllergyIntolerance": ["subjectMedicalHistory"],
        "FamilyMemberHistory": ["subjectMedicalHistory"],
        "Media": ["subjectMedicalHistory"],
        "DocumentReference": ["subjectMedicalHistory", "referenceDocument"],
        "ResearchStudy": ["study"]
    },
    "AllergyIntolerance": {
        "Patient": ["patient", "recorder", "asserter"],
        "Encounter": ["encounter"],
        "Practitioner": ["recorder", "asserter"],
        "PractitionerRole": ["recorder", "asserter"],
        "RelatedPerson": ["recorder", "asserter"]
    },
    "Appointment": {
        "Condition": ["reasonReference"],
        "Procedure": ["reasonReference"],
        "Observation": ["reasonReference"],
        "ImmunizationRecommendation": ["reasonReference"],
        "Resource": ["supportingInformation"],
        "Slot": ["slot"],
        "ServiceRequest": ["basedOn"],
        "Patient": ["participant.actor"],
        "Practitioner": ["participant.actor"],
        "PractitionerRole": ["participant.actor"],
        "RelatedPerson": ["participant.actor"],
        "Device": ["participant.actor"],
        "HealthcareService": ["participant.actor"],
        "Location": ["participant.actor"]
    },
    "AppointmentResponse": {
        "Appointment": ["appointment"],
        "Patient": ["actor"],
        "Practitioner": ["actor"],
        "PractitionerRole": ["actor"],
        "RelatedPerson": ["actor"],
        "Device": ["actor"],
        "HealthcareService": ["actor"],
        "Location": ["actor"]
    },
    "AuditEvent": {
        "PractitionerRole": ["agent.who", "source.observer"],
        "Practitioner": ["agent.who", "source.observer"],
        "Organization": ["agent.who", "source.observer"],
        "Device": ["agent.who", "source.observer"],
        "Patient": ["agent.who", "source.observer"],
        "RelatedPerson": ["agent.who", "source.observer"],
        "Location": ["agent.location"],
        "Resource": ["entity.what"]
    },
    "Basic": {
        "Resource": ["subject"],
        "Practitioner": ["author"],
        "PractitionerRole": ["author"],
        "Patient": ["author"],
        "RelatedPerson": ["author"],
        "Organization": ["author"]
    },
    "BiologicallyDerivedProduct": {
        "ServiceRequest": ["request"],
        "BiologicallyDerivedProduct": ["parent"],
        "Practitioner": ["collection.collector"],
        "PractitionerRole": ["collection.collector"],
        "Patient": ["collection.source"],
        "Organization": ["collection.source"],
        "Substance": ["processing.additive"]
    },
    "BodyStructure": { "Patient": ["patient"] },
    "CapabilityStatement": { "Organization": ["implementation.custodian"] },
    "CarePlan": {
        "CarePlan": ["basedOn", "replaces", "partOf"],
        "Patient": ["subject", "author", "contributor", "activity.detail.performer"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "Practitioner": ["author", "contributor", "activity.detail.performer"],
        "PractitionerRole": ["author", "contributor", "activity.detail.performer"],
        "Device": ["author", "contributor", "activity.detail.performer"],
        "RelatedPerson": ["author", "contributor", "activity.detail.performer"],
        "Organization": ["author", "contributor", "activity.detail.performer"],
        "CareTeam": ["author", "contributor", "careTeam", "activity.detail.performer"],
        "Condition": ["addresses", "activity.detail.reasonReference"],
        "Resource": ["supportingInfo", "activity.outcomeReference"],
        "Goal": ["goal", "activity.detail.goal"],
        "Appointment": ["activity.reference"],
        "CommunicationRequest": ["activity.reference"],
        "DeviceRequest": ["activity.reference"],
        "MedicationRequest": ["activity.reference"],
        "NutritionOrder": ["activity.reference"],
        "Task": ["activity.reference"],
        "ServiceRequest": ["activity.reference"],
        "VisionPrescription": ["activity.reference"],
        "RequestGroup": ["activity.reference"],
        "Observation": ["activity.detail.reasonReference"],
        "DiagnosticReport": ["activity.detail.reasonReference"],
        "DocumentReference": ["activity.detail.reasonReference"],
        "Location": ["activity.detail.location"],
        "HealthcareService": ["activity.detail.performer"],
        "Medication": ["activity.detail.productReference"],
        "Substance": ["activity.detail.productReference"]
    },
    "CareTeam": {
        "Patient": ["subject", "participant.member"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "Practitioner": ["participant.member"],
        "PractitionerRole": ["participant.member"],
        "RelatedPerson": ["participant.member"],
        "Organization": ["participant.member", "participant.onBehalfOf", "managingOrganization"],
        "CareTeam": ["participant.member"],
        "Condition": ["reasonReference"]
    },
    "CatalogEntry": {
        "Medication": ["referencedItem"],
        "Device": ["referencedItem"],
        "Organization": ["referencedItem"],
        "Practitioner": ["referencedItem"],
        "PractitionerRole": ["referencedItem"],
        "HealthcareService": ["referencedItem"],
        "ActivityDefinition": ["referencedItem"],
        "PlanDefinition": ["referencedItem"],
        "SpecimenDefinition": ["referencedItem"],
        "ObservationDefinition": ["referencedItem"],
        "Binary": ["referencedItem"],
        "CatalogEntry": ["relatedEntry.item"]
    },
    "ChargeItem": {
        "ChargeItem": ["partOf"],
        "Patient": ["subject", "performer.actor", "enterer"],
        "Group": ["subject"],
        "Encounter": ["context"],
        "EpisodeOfCare": ["context"],
        "Practitioner": ["performer.actor", "enterer"],
        "PractitionerRole": ["performer.actor", "enterer"],
        "Organization": [
            "performer.actor",
            "performingOrganization",
            "requestingOrganization",
            "costCenter",
            "enterer"
        ],
        "CareTeam": ["performer.actor"],
        "Device": ["performer.actor", "enterer", "productReference"],
        "RelatedPerson": ["performer.actor", "enterer"],
        "DiagnosticReport": ["service"],
        "ImagingStudy": ["service"],
        "Immunization": ["service"],
        "MedicationAdministration": ["service"],
        "MedicationDispense": ["service"],
        "Observation": ["service"],
        "Procedure": ["service"],
        "SupplyDelivery": ["service"],
        "Medication": ["productReference"],
        "Substance": ["productReference"],
        "Account": ["account"],
        "Resource": ["supportingInformation"]
    },
    "ChargeItemDefinition": { "Medication": ["instance"], "Substance": ["instance"], "Device": ["instance"] },
    "Claim": {
        "Patient": ["patient", "payee.party"],
        "Practitioner": ["enterer", "provider", "payee.party", "careTeam.provider"],
        "PractitionerRole": ["enterer", "provider", "payee.party", "careTeam.provider"],
        "Organization": ["insurer", "provider", "payee.party", "careTeam.provider"],
        "Claim": ["related.claim"],
        "DeviceRequest": ["prescription", "originalPrescription"],
        "MedicationRequest": ["prescription", "originalPrescription"],
        "VisionPrescription": ["prescription", "originalPrescription"],
        "RelatedPerson": ["payee.party"],
        "ServiceRequest": ["referral"],
        "Location": ["facility", "accident.locationReference", "item.locationReference"],
        "Resource": ["supportingInfo.valueReference"],
        "Condition": ["diagnosis.diagnosisReference"],
        "Procedure": ["procedure.procedureReference"],
        "Device": ["procedure.udi", "item.udi", "item.detail.udi", "item.detail.subDetail.udi"],
        "Coverage": ["insurance.coverage"],
        "ClaimResponse": ["insurance.claimResponse"],
        "Encounter": ["item.encounter"]
    },
    "ClaimResponse": {
        "Patient": ["patient"],
        "Organization": ["insurer", "requestor", "addItem.provider"],
        "Practitioner": ["requestor", "addItem.provider"],
        "PractitionerRole": ["requestor", "addItem.provider"],
        "Claim": ["request"],
        "Location": ["addItem.locationReference"],
        "CommunicationRequest": ["communicationRequest"],
        "Coverage": ["insurance.coverage"],
        "ClaimResponse": ["insurance.claimResponse"]
    },
    "ClinicalImpression": {
        "Patient": ["subject"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "Practitioner": ["assessor"],
        "PractitionerRole": ["assessor"],
        "ClinicalImpression": ["previous"],
        "Condition": ["problem", "finding.itemReference"],
        "AllergyIntolerance": ["problem"],
        "Observation": ["investigation.item", "finding.itemReference"],
        "QuestionnaireResponse": ["investigation.item"],
        "FamilyMemberHistory": ["investigation.item"],
        "DiagnosticReport": ["investigation.item"],
        "RiskAssessment": ["investigation.item", "prognosisReference"],
        "ImagingStudy": ["investigation.item"],
        "Media": ["investigation.item", "finding.itemReference"],
        "Resource": ["supportingInfo"]
    },
    "Communication": {
        "Resource": ["basedOn", "partOf", "about", "payload.contentReference"],
        "Communication": ["inResponseTo"],
        "Patient": ["subject", "recipient", "sender"],
        "Group": ["subject", "recipient"],
        "Encounter": ["encounter"],
        "Device": ["recipient", "sender"],
        "Organization": ["recipient", "sender"],
        "Practitioner": ["recipient", "sender"],
        "PractitionerRole": ["recipient", "sender"],
        "RelatedPerson": ["recipient", "sender"],
        "CareTeam": ["recipient"],
        "HealthcareService": ["recipient", "sender"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"]
    },
    "CommunicationRequest": {
        "Resource": ["basedOn", "about", "payload.contentReference"],
        "CommunicationRequest": ["replaces"],
        "Patient": ["subject", "requester", "recipient", "sender"],
        "Group": ["subject", "recipient"],
        "Encounter": ["encounter"],
        "Practitioner": ["requester", "recipient", "sender"],
        "PractitionerRole": ["requester", "recipient", "sender"],
        "Organization": ["requester", "recipient", "sender"],
        "RelatedPerson": ["requester", "recipient", "sender"],
        "Device": ["requester", "recipient", "sender"],
        "CareTeam": ["recipient"],
        "HealthcareService": ["recipient", "sender"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"]
    },
    "Composition": {
        "Resource": ["subject", "event.detail", "section.focus", "section.entry"],
        "Encounter": ["encounter"],
        "Practitioner": ["author", "attester.party", "section.author"],
        "PractitionerRole": ["author", "attester.party", "section.author"],
        "Device": ["author", "section.author"],
        "Patient": ["author", "attester.party", "section.author"],
        "RelatedPerson": ["author", "attester.party", "section.author"],
        "Organization": ["author", "attester.party", "custodian", "section.author"],
        "Composition": ["relatesTo.targetReference"]
    },
    "Condition": {
        "Patient": ["subject", "recorder", "asserter"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "Practitioner": ["recorder", "asserter"],
        "PractitionerRole": ["recorder", "asserter"],
        "RelatedPerson": ["recorder", "asserter"],
        "ClinicalImpression": ["stage.assessment"],
        "DiagnosticReport": ["stage.assessment"],
        "Observation": ["stage.assessment"],
        "Resource": ["evidence.detail"]
    },
    "Consent": {
        "Patient": ["patient", "performer", "verification.verifiedWith", "provision.actor.reference"],
        "Organization": ["performer", "organization", "provision.actor.reference"],
        "Practitioner": ["performer", "provision.actor.reference"],
        "RelatedPerson": ["performer", "verification.verifiedWith", "provision.actor.reference"],
        "PractitionerRole": ["performer", "provision.actor.reference"],
        "Consent": ["sourceReference"],
        "DocumentReference": ["sourceReference"],
        "Contract": ["sourceReference"],
        "QuestionnaireResponse": ["sourceReference"],
        "Device": ["provision.actor.reference"],
        "Group": ["provision.actor.reference"],
        "CareTeam": ["provision.actor.reference"],
        "Resource": ["provision.data.reference"]
    },
    "Contract": {
        "Contract": ["instantiatesCanonical", "legallyBindingReference"],
        "Resource": [
            "subject",
            "topicReference",
            "term.topicReference",
            "term.offer.topic",
            "term.offer.answer.valueReference",
            "term.asset.typeReference",
            "term.asset.context.reference",
            "term.asset.valuedItem.entityReference",
            "supportingInfo"
        ],
        "Organization": [
            "authority",
            "author",
            "contentDefinition.publisher",
            "term.offer.party.reference",
            "term.asset.valuedItem.responsible",
            "term.asset.valuedItem.recipient",
            "term.action.subject.reference",
            "term.action.requester",
            "term.action.performer",
            "signer.party"
        ],
        "Location": ["domain", "site", "term.action.performer"],
        "Patient": [
            "author",
            "term.offer.party.reference",
            "term.asset.valuedItem.responsible",
            "term.asset.valuedItem.recipient",
            "term.action.subject.reference",
            "term.action.requester",
            "term.action.performer",
            "signer.party"
        ],
        "Practitioner": [
            "author",
            "contentDefinition.publisher",
            "term.offer.party.reference",
            "term.asset.valuedItem.responsible",
            "term.asset.valuedItem.recipient",
            "term.action.subject.reference",
            "term.action.requester",
            "term.action.performer",
            "signer.party"
        ],
        "PractitionerRole": [
            "author",
            "contentDefinition.publisher",
            "term.offer.party.reference",
            "term.asset.valuedItem.responsible",
            "term.asset.valuedItem.recipient",
            "term.action.subject.reference",
            "term.action.requester",
            "term.action.performer",
            "signer.party"
        ],
        "RelatedPerson": [
            "term.offer.party.reference",
            "term.asset.valuedItem.responsible",
            "term.asset.valuedItem.recipient",
            "term.action.subject.reference",
            "term.action.requester",
            "term.action.performer",
            "signer.party"
        ],
        "Device": [
            "term.offer.party.reference",
            "term.action.subject.reference",
            "term.action.requester",
            "term.action.performer"
        ],
        "Group": ["term.offer.party.reference", "term.action.subject.reference", "term.action.requester"],
        "Encounter": ["term.action.context"],
        "EpisodeOfCare": ["term.action.context"],
        "CareTeam": ["term.action.performer"],
        "Substance": ["term.action.performer"],
        "Condition": ["term.action.reasonReference"],
        "Observation": ["term.action.reasonReference"],
        "DiagnosticReport": ["term.action.reasonReference"],
        "DocumentReference": [
            "term.action.reasonReference",
            "friendly.contentReference",
            "legal.contentReference",
            "rule.contentReference",
            "legallyBindingReference"
        ],
        "Questionnaire": ["term.action.reasonReference"],
        "QuestionnaireResponse": [
            "term.action.reasonReference",
            "friendly.contentReference",
            "legal.contentReference",
            "legallyBindingReference"
        ],
        "Provenance": ["relevantHistory"],
        "Composition": ["friendly.contentReference", "legal.contentReference", "legallyBindingReference"]
    },
    "Coverage": {
        "Patient": ["policyHolder", "subscriber", "beneficiary", "payor"],
        "RelatedPerson": ["policyHolder", "subscriber", "payor"],
        "Organization": ["policyHolder", "payor"],
        "Contract": ["contract"]
    },
    "CoverageEligibilityRequest": {
        "Patient": ["patient"],
        "Practitioner": ["enterer", "provider", "item.provider"],
        "PractitionerRole": ["enterer", "provider", "item.provider"],
        "Organization": ["provider", "insurer", "item.facility"],
        "Location": ["facility", "item.facility"],
        "Resource": ["supportingInfo.information", "item.detail"],
        "Coverage": ["insurance.coverage"],
        "Condition": ["item.diagnosis.diagnosisReference"]
    },
    "CoverageEligibilityResponse": {
        "Patient": ["patient"],
        "Practitioner": ["requestor", "insurance.item.provider"],
        "PractitionerRole": ["requestor", "insurance.item.provider"],
        "Organization": ["requestor", "insurer"],
        "CoverageEligibilityRequest": ["request"],
        "Coverage": ["insurance.coverage"]
    },
    "DetectedIssue": {
        "Patient": ["patient"],
        "Practitioner": ["author", "mitigation.author"],
        "PractitionerRole": ["author", "mitigation.author"],
        "Device": ["author"],
        "Resource": ["implicated", "evidence.detail"]
    },
    "Device": {
        "DeviceDefinition": ["definition"],
        "Patient": ["patient"],
        "Organization": ["owner"],
        "Location": ["location"],
        "Device": ["parent"]
    },
    "DeviceDefinition": {
        "Organization": ["manufacturerReference", "owner"],
        "DeviceDefinition": ["parentDevice"]
    },
    "DeviceMetric": { "Device": ["source", "parent"] },
    "DeviceRequest": {
        "Resource": ["basedOn", "priorRequest", "supportingInfo"],
        "Device": ["codeReference", "subject", "requester", "performer"],
        "Patient": ["subject", "performer"],
        "Group": ["subject"],
        "Location": ["subject"],
        "Encounter": ["encounter"],
        "Practitioner": ["requester", "performer"],
        "PractitionerRole": ["requester", "performer"],
        "Organization": ["requester", "performer"],
        "CareTeam": ["performer"],
        "HealthcareService": ["performer"],
        "RelatedPerson": ["performer"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"],
        "Coverage": ["insurance"],
        "ClaimResponse": ["insurance"],
        "Provenance": ["relevantHistory"]
    },
    "DeviceUseStatement": {
        "ServiceRequest": ["basedOn", "derivedFrom"],
        "Patient": ["subject", "source"],
        "Group": ["subject"],
        "Procedure": ["derivedFrom"],
        "Claim": ["derivedFrom"],
        "Observation": ["derivedFrom", "reasonReference"],
        "QuestionnaireResponse": ["derivedFrom"],
        "DocumentReference": ["derivedFrom", "reasonReference"],
        "Practitioner": ["source"],
        "PractitionerRole": ["source"],
        "RelatedPerson": ["source"],
        "Device": ["device"],
        "Condition": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "Media": ["reasonReference"]
    },
    "DiagnosticReport": {
        "CarePlan": ["basedOn"],
        "ImmunizationRecommendation": ["basedOn"],
        "MedicationRequest": ["basedOn"],
        "NutritionOrder": ["basedOn"],
        "ServiceRequest": ["basedOn"],
        "Patient": ["subject"],
        "Group": ["subject"],
        "Device": ["subject"],
        "Location": ["subject"],
        "Encounter": ["encounter"],
        "Practitioner": ["performer", "resultsInterpreter"],
        "PractitionerRole": ["performer", "resultsInterpreter"],
        "Organization": ["performer", "resultsInterpreter"],
        "CareTeam": ["performer", "resultsInterpreter"],
        "Specimen": ["specimen"],
        "Observation": ["result"],
        "ImagingStudy": ["imagingStudy"],
        "Media": ["media.link"]
    },
    "DocumentManifest": {
        "Patient": ["subject", "author", "recipient"],
        "Practitioner": ["subject", "author", "recipient"],
        "Group": ["subject"],
        "Device": ["subject", "author"],
        "PractitionerRole": ["author", "recipient"],
        "Organization": ["author", "recipient"],
        "RelatedPerson": ["author", "recipient"],
        "Resource": ["content", "related.ref"]
    },
    "DocumentReference": {
        "Patient": ["subject", "author", "context.sourcePatientInfo"],
        "Practitioner": ["subject", "author", "authenticator"],
        "Group": ["subject"],
        "Device": ["subject", "author"],
        "PractitionerRole": ["author", "authenticator"],
        "Organization": ["author", "authenticator", "custodian"],
        "RelatedPerson": ["author"],
        "DocumentReference": ["relatesTo.target"],
        "Encounter": ["context.encounter"],
        "EpisodeOfCare": ["context.encounter"],
        "Resource": ["context.related"]
    },
    "EffectEvidenceSynthesis": {
        "EvidenceVariable": ["population", "exposure", "exposureAlternative", "outcome"],
        "RiskEvidenceSynthesis": ["resultsByExposure.riskEvidenceSynthesis"]
    },
    "Encounter": {
        "Patient": ["subject"],
        "Group": ["subject"],
        "EpisodeOfCare": ["episodeOfCare"],
        "ServiceRequest": ["basedOn"],
        "Practitioner": ["participant.individual"],
        "PractitionerRole": ["participant.individual"],
        "RelatedPerson": ["participant.individual"],
        "Appointment": ["appointment"],
        "Condition": ["reasonReference", "diagnosis.condition"],
        "Procedure": ["reasonReference", "diagnosis.condition"],
        "Observation": ["reasonReference"],
        "ImmunizationRecommendation": ["reasonReference"],
        "Account": ["account"],
        "Location": ["hospitalization.origin", "hospitalization.destination", "location.location"],
        "Organization": ["hospitalization.origin", "hospitalization.destination", "serviceProvider"],
        "Encounter": ["partOf"]
    },
    "Endpoint": { "Organization": ["managingOrganization"] },
    "EnrollmentRequest": {
        "Organization": ["insurer", "provider"],
        "Practitioner": ["provider"],
        "PractitionerRole": ["provider"],
        "Patient": ["candidate"],
        "Coverage": ["coverage"]
    },
    "EnrollmentResponse": {
        "EnrollmentRequest": ["request"],
        "Organization": ["organization", "requestProvider"],
        "Practitioner": ["requestProvider"],
        "PractitionerRole": ["requestProvider"]
    },
    "EpisodeOfCare": {
        "Condition": ["diagnosis.condition"],
        "Patient": ["patient"],
        "Organization": ["managingOrganization"],
        "ServiceRequest": ["referralRequest"],
        "Practitioner": ["careManager"],
        "PractitionerRole": ["careManager"],
        "CareTeam": ["team"],
        "Account": ["account"]
    },
    "EventDefinition": { "Group": ["subjectReference"] },
    "Evidence": { "EvidenceVariable": ["exposureBackground", "exposureVariant", "outcome"] },
    "EvidenceVariable": { "Group": ["characteristic.definitionReference"] },
    "ExplanationOfBenefit": {
        "Patient": ["patient", "payee.party"],
        "Practitioner": ["enterer", "provider", "payee.party", "careTeam.provider", "addItem.provider"],
        "PractitionerRole": ["enterer", "provider", "payee.party", "careTeam.provider", "addItem.provider"],
        "Organization": ["insurer", "provider", "payee.party", "careTeam.provider", "addItem.provider"],
        "Claim": ["related.claim", "claim"],
        "MedicationRequest": ["prescription", "originalPrescription"],
        "VisionPrescription": ["prescription"],
        "RelatedPerson": ["payee.party"],
        "ServiceRequest": ["referral"],
        "Location": [
            "facility",
            "accident.locationReference",
            "item.locationReference",
            "addItem.locationReference"
        ],
        "ClaimResponse": ["claimResponse"],
        "Resource": ["supportingInfo.valueReference"],
        "Condition": ["diagnosis.diagnosisReference"],
        "Procedure": ["procedure.procedureReference"],
        "Device": ["procedure.udi", "item.udi", "item.detail.udi", "item.detail.subDetail.udi"],
        "Coverage": ["insurance.coverage"],
        "Encounter": ["item.encounter"]
    },
    "FamilyMemberHistory": {
        "Patient": ["patient"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "AllergyIntolerance": ["reasonReference"],
        "QuestionnaireResponse": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"]
    },
    "Flag": {
        "Patient": ["subject", "author"],
        "Location": ["subject"],
        "Group": ["subject"],
        "Organization": ["subject", "author"],
        "Practitioner": ["subject", "author"],
        "PlanDefinition": ["subject"],
        "Medication": ["subject"],
        "Procedure": ["subject"],
        "Encounter": ["encounter"],
        "Device": ["author"],
        "PractitionerRole": ["author"]
    },
    "Goal": {
        "Patient": ["subject", "expressedBy"],
        "Group": ["subject"],
        "Organization": ["subject"],
        "Practitioner": ["expressedBy"],
        "PractitionerRole": ["expressedBy"],
        "RelatedPerson": ["expressedBy"],
        "Condition": ["addresses"],
        "Observation": ["addresses", "outcomeReference"],
        "MedicationStatement": ["addresses"],
        "NutritionOrder": ["addresses"],
        "ServiceRequest": ["addresses"],
        "RiskAssessment": ["addresses"]
    },
    "Group": {
        "Organization": ["managingEntity"],
        "RelatedPerson": ["managingEntity"],
        "Practitioner": ["managingEntity", "member.entity"],
        "PractitionerRole": ["managingEntity", "member.entity"],
        "Patient": ["member.entity"],
        "Device": ["member.entity"],
        "Medication": ["member.entity"],
        "Substance": ["member.entity"],
        "Group": ["member.entity"]
    },
    "GuidanceResponse": {
        "Patient": ["subject"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "Device": ["performer"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"],
        "OperationOutcome": ["evaluationMessage"],
        "Parameters": ["outputParameters"],
        "CarePlan": ["result"],
        "RequestGroup": ["result"]
    },
    "HealthcareService": {
        "Organization": ["providedBy"],
        "Location": ["location", "coverageArea"],
        "Endpoint": ["endpoint"]
    },
    "ImagingStudy": {
        "Patient": ["subject", "series.performer.actor"],
        "Device": ["subject", "series.performer.actor"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "CarePlan": ["basedOn"],
        "ServiceRequest": ["basedOn"],
        "Appointment": ["basedOn"],
        "AppointmentResponse": ["basedOn"],
        "Task": ["basedOn"],
        "Practitioner": ["referrer", "interpreter", "series.performer.actor"],
        "PractitionerRole": ["referrer", "interpreter", "series.performer.actor"],
        "Endpoint": ["endpoint", "series.endpoint"],
        "Procedure": ["procedureReference"],
        "Location": ["location"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "Media": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"],
        "Specimen": ["series.specimen"],
        "Organization": ["series.performer.actor"],
        "CareTeam": ["series.performer.actor"],
        "RelatedPerson": ["series.performer.actor"]
    },
    "Immunization": {
        "Patient": ["patient"],
        "Encounter": ["encounter"],
        "Location": ["location"],
        "Organization": ["manufacturer", "performer.actor", "protocolApplied.authority"],
        "Practitioner": ["performer.actor"],
        "PractitionerRole": ["performer.actor"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference", "reaction.detail"],
        "DiagnosticReport": ["reasonReference"]
    },
    "ImmunizationEvaluation": {
        "Patient": ["patient"],
        "Organization": ["authority"],
        "Immunization": ["immunizationEvent"]
    },
    "ImmunizationRecommendation": {
        "Patient": ["patient"],
        "Organization": ["authority"],
        "Immunization": ["recommendation.supportingImmunization"],
        "ImmunizationEvaluation": ["recommendation.supportingImmunization"],
        "Resource": ["recommendation.supportingPatientInformation"]
    },
    "ImplementationGuide": {
        "Resource": ["definition.resource.reference", "manifest.resource.reference"],
        "Binary": ["definition.page.nameReference"]
    },
    "InsurancePlan": {
        "Organization": ["ownedBy", "administeredBy", "network", "coverage.network", "plan.network"],
        "Location": ["coverageArea", "plan.coverageArea"],
        "Endpoint": ["endpoint"]
    },
    "Invoice": {
        "Patient": ["subject", "recipient", "participant.actor"],
        "Group": ["subject"],
        "Organization": ["recipient", "participant.actor", "issuer"],
        "RelatedPerson": ["recipient", "participant.actor"],
        "Practitioner": ["participant.actor"],
        "PractitionerRole": ["participant.actor"],
        "Device": ["participant.actor"],
        "Account": ["account"],
        "ChargeItem": ["lineItem.chargeItemReference"]
    },
    "Library": { "Group": ["subjectReference"] },
    "Linkage": {
        "Practitioner": ["author"],
        "PractitionerRole": ["author"],
        "Organization": ["author"],
        "Resource": ["item.resource"]
    },
    "List": {
        "Patient": ["subject", "source"],
        "Group": ["subject"],
        "Device": ["subject", "source"],
        "Location": ["subject"],
        "Encounter": ["encounter"],
        "Practitioner": ["source"],
        "PractitionerRole": ["source"],
        "Resource": ["entry.item"]
    },
    "Location": { "Organization": ["managingOrganization"], "Location": ["partOf"], "Endpoint": ["endpoint"] },
    "Measure": { "Group": ["subjectReference"] },
    "MeasureReport": {
        "Patient": ["subject"],
        "Practitioner": ["subject", "reporter"],
        "PractitionerRole": ["subject", "reporter"],
        "Location": ["subject", "reporter"],
        "Device": ["subject"],
        "RelatedPerson": ["subject"],
        "Group": ["subject"],
        "Organization": ["reporter"],
        "List": ["group.population.subjectResults", "group.stratifier.stratum.population.subjectResults"],
        "Resource": ["evaluatedResource"]
    },
    "Media": {
        "ServiceRequest": ["basedOn"],
        "CarePlan": ["basedOn"],
        "Resource": ["partOf"],
        "Patient": ["subject", "operator"],
        "Practitioner": ["subject", "operator"],
        "PractitionerRole": ["subject", "operator"],
        "Group": ["subject"],
        "Device": ["subject", "operator", "device", "device"],
        "Specimen": ["subject"],
        "Location": ["subject"],
        "Encounter": ["encounter"],
        "Organization": ["operator"],
        "CareTeam": ["operator"],
        "RelatedPerson": ["operator"],
        "DeviceMetric": ["device"]
    },
    "Medication": {
        "Organization": ["manufacturer"],
        "Substance": ["ingredient.itemReference"],
        "Medication": ["ingredient.itemReference"]
    },
    "MedicationAdministration": {
        "MedicationAdministration": ["partOf"],
        "Procedure": ["partOf"],
        "Medication": ["medicationReference"],
        "Patient": ["subject", "performer.actor"],
        "Group": ["subject"],
        "Encounter": ["context"],
        "EpisodeOfCare": ["context"],
        "Resource": ["supportingInformation"],
        "Practitioner": ["performer.actor"],
        "PractitionerRole": ["performer.actor"],
        "RelatedPerson": ["performer.actor"],
        "Device": ["performer.actor", "device"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "MedicationRequest": ["request"],
        "Provenance": ["eventHistory"]
    },
    "MedicationDispense": {
        "Procedure": ["partOf"],
        "DetectedIssue": ["statusReasonReference", "detectedIssue"],
        "Medication": ["medicationReference"],
        "Patient": ["subject", "performer.actor", "receiver"],
        "Group": ["subject"],
        "Encounter": ["context"],
        "EpisodeOfCare": ["context"],
        "Resource": ["supportingInformation"],
        "Practitioner": ["performer.actor", "receiver", "substitution.responsibleParty"],
        "PractitionerRole": ["performer.actor", "substitution.responsibleParty"],
        "Organization": ["performer.actor"],
        "Device": ["performer.actor"],
        "RelatedPerson": ["performer.actor"],
        "Location": ["location", "destination"],
        "MedicationRequest": ["authorizingPrescription"],
        "Provenance": ["eventHistory"]
    },
    "MedicationKnowledge": {
        "Organization": ["manufacturer", "regulatory.regulatoryAuthority"],
        "MedicationKnowledge": ["relatedMedicationKnowledge.reference"],
        "Medication": ["associatedMedication"],
        "DocumentReference": ["monograph.source"],
        "Media": ["monograph.source"],
        "Substance": ["ingredient.itemReference"],
        "ObservationDefinition": ["administrationGuidelines.indicationReference"],
        "DetectedIssue": ["contraindication"]
    },
    "MedicationRequest": {
        "Patient": ["reportedReference", "subject", "requester", "performer"],
        "Practitioner": ["reportedReference", "requester", "performer", "recorder"],
        "PractitionerRole": ["reportedReference", "requester", "performer", "recorder"],
        "RelatedPerson": ["reportedReference", "requester", "performer"],
        "Organization": ["reportedReference", "requester", "performer", "dispenseRequest.performer"],
        "Medication": ["medicationReference"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "Resource": ["supportingInformation"],
        "Device": ["requester", "performer"],
        "CareTeam": ["performer"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "CarePlan": ["basedOn"],
        "MedicationRequest": ["basedOn", "priorPrescription"],
        "ServiceRequest": ["basedOn"],
        "ImmunizationRecommendation": ["basedOn"],
        "Coverage": ["insurance"],
        "ClaimResponse": ["insurance"],
        "DetectedIssue": ["detectedIssue"],
        "Provenance": ["eventHistory"]
    },
    "MedicationStatement": {
        "MedicationRequest": ["basedOn"],
        "CarePlan": ["basedOn"],
        "ServiceRequest": ["basedOn"],
        "MedicationAdministration": ["partOf"],
        "MedicationDispense": ["partOf"],
        "MedicationStatement": ["partOf"],
        "Procedure": ["partOf"],
        "Observation": ["partOf", "reasonReference"],
        "Medication": ["medicationReference"],
        "Patient": ["subject", "informationSource"],
        "Group": ["subject"],
        "Encounter": ["context"],
        "EpisodeOfCare": ["context"],
        "Practitioner": ["informationSource"],
        "PractitionerRole": ["informationSource"],
        "RelatedPerson": ["informationSource"],
        "Organization": ["informationSource"],
        "Resource": ["derivedFrom"],
        "Condition": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"]
    },
    "MedicinalProduct": {
        "MedicinalProductPharmaceutical": ["pharmaceuticalProduct"],
        "MedicinalProductPackaged": ["packagedMedicinalProduct"],
        "DocumentReference": ["attachedDocument", "masterFile"],
        "Organization": [
            "contact",
            "manufacturingBusinessOperation.manufacturer",
            "manufacturingBusinessOperation.regulator"
        ],
        "PractitionerRole": ["contact"],
        "ResearchStudy": ["clinicalTrial"],
        "MedicinalProductIndication": ["specialDesignation.indicationReference"]
    },
    "MedicinalProductAuthorization": {
        "MedicinalProduct": ["subject"],
        "MedicinalProductPackaged": ["subject"],
        "Organization": ["holder", "regulator"]
    },
    "MedicinalProductContraindication": {
        "MedicinalProduct": ["subject", "otherTherapy.medicationReference"],
        "Medication": ["subject", "otherTherapy.medicationReference"],
        "MedicinalProductIndication": ["therapeuticIndication"],
        "Substance": ["otherTherapy.medicationReference"],
        "SubstanceSpecification": ["otherTherapy.medicationReference"]
    },
    "MedicinalProductIndication": {
        "MedicinalProduct": ["subject", "otherTherapy.medicationReference"],
        "Medication": ["subject", "otherTherapy.medicationReference"],
        "Substance": ["otherTherapy.medicationReference"],
        "SubstanceSpecification": ["otherTherapy.medicationReference"],
        "MedicinalProductUndesirableEffect": ["undesirableEffect"]
    },
    "MedicinalProductIngredient": { "Organization": ["manufacturer"] },
    "MedicinalProductInteraction": {
        "MedicinalProduct": ["subject", "interactant.itemReference"],
        "Medication": ["subject", "interactant.itemReference"],
        "Substance": ["subject", "interactant.itemReference"],
        "ObservationDefinition": ["interactant.itemReference"]
    },
    "MedicinalProductManufactured": {
        "Organization": ["manufacturer"],
        "MedicinalProductIngredient": ["ingredient"]
    },
    "MedicinalProductPackaged": {
        "MedicinalProduct": ["subject"],
        "MedicinalProductAuthorization": ["marketingAuthorization"],
        "Organization": ["manufacturer", "packageItem.manufacturer"],
        "DeviceDefinition": ["packageItem.device"],
        "MedicinalProductManufactured": ["packageItem.manufacturedItem"]
    },
    "MedicinalProductPharmaceutical": {
        "MedicinalProductIngredient": ["ingredient"],
        "DeviceDefinition": ["device"]
    },
    "MedicinalProductUndesirableEffect": { "MedicinalProduct": ["subject"], "Medication": ["subject"] },
    "MessageHeader": {
        "Device": ["destination.target"],
        "Practitioner": ["destination.receiver", "sender", "enterer", "author", "responsible"],
        "PractitionerRole": ["destination.receiver", "sender", "enterer", "author", "responsible"],
        "Organization": ["destination.receiver", "sender", "responsible"],
        "OperationOutcome": ["response.details"],
        "Resource": ["focus"]
    },
    "MolecularSequence": {
        "Patient": ["patient"],
        "Specimen": ["specimen"],
        "Device": ["device"],
        "Organization": ["performer"],
        "MolecularSequence": ["referenceSeq.referenceSeqPointer", "pointer"],
        "Observation": ["variant.variantPointer"]
    },
    "NutritionOrder": {
        "Patient": ["patient"],
        "Encounter": ["encounter"],
        "Practitioner": ["orderer"],
        "PractitionerRole": ["orderer"],
        "AllergyIntolerance": ["allergyIntolerance"]
    },
    "Observation": {
        "CarePlan": ["basedOn"],
        "DeviceRequest": ["basedOn"],
        "ImmunizationRecommendation": ["basedOn"],
        "MedicationRequest": ["basedOn"],
        "NutritionOrder": ["basedOn"],
        "ServiceRequest": ["basedOn"],
        "MedicationAdministration": ["partOf"],
        "MedicationDispense": ["partOf"],
        "MedicationStatement": ["partOf"],
        "Procedure": ["partOf"],
        "Immunization": ["partOf"],
        "ImagingStudy": ["partOf", "derivedFrom"],
        "Patient": ["subject", "performer"],
        "Group": ["subject"],
        "Device": ["subject", "device"],
        "Location": ["subject"],
        "Resource": ["focus"],
        "Encounter": ["encounter"],
        "Practitioner": ["performer"],
        "PractitionerRole": ["performer"],
        "Organization": ["performer"],
        "CareTeam": ["performer"],
        "RelatedPerson": ["performer"],
        "Specimen": ["specimen"],
        "DeviceMetric": ["device"],
        "Observation": ["hasMember", "derivedFrom"],
        "QuestionnaireResponse": ["hasMember", "derivedFrom"],
        "MolecularSequence": ["hasMember", "derivedFrom"],
        "DocumentReference": ["derivedFrom"],
        "Media": ["derivedFrom"]
    },
    "ObservationDefinition": {
        "ValueSet": [
            "validCodedValueSet",
            "normalCodedValueSet",
            "abnormalCodedValueSet",
            "criticalCodedValueSet"
        ]
    },
    "Organization": { "Organization": ["partOf"], "Endpoint": ["endpoint"] },
    "OrganizationAffiliation": {
        "Organization": ["organization", "participatingOrganization", "network"],
        "Location": ["location"],
        "HealthcareService": ["healthcareService"],
        "Endpoint": ["endpoint"]
    },
    "Patient": {
        "Organization": ["contact.organization", "generalPractitioner", "managingOrganization"],
        "Practitioner": ["generalPractitioner"],
        "PractitionerRole": ["generalPractitioner"],
        "Patient": ["link.other"],
        "RelatedPerson": ["link.other"]
    },
    "PaymentNotice": {
        "Resource": ["request", "response"],
        "Practitioner": ["provider", "payee"],
        "PractitionerRole": ["provider", "payee"],
        "Organization": ["provider", "payee", "recipient"],
        "PaymentReconciliation": ["payment"]
    },
    "PaymentReconciliation": {
        "Organization": ["paymentIssuer", "requestor", "detail.submitter", "detail.payee"],
        "Task": ["request"],
        "Practitioner": ["requestor", "detail.submitter", "detail.payee"],
        "PractitionerRole": ["requestor", "detail.submitter", "detail.responsible", "detail.payee"],
        "Resource": ["detail.request", "detail.response"]
    },
    "Person": {
        "Organization": ["managingOrganization"],
        "Patient": ["link.target"],
        "Practitioner": ["link.target"],
        "RelatedPerson": ["link.target"],
        "Person": ["link.target"]
    },
    "PlanDefinition": { "Group": ["subjectReference", "action.subjectReference"] },
    "Practitioner": { "Organization": ["qualification.issuer"] },
    "PractitionerRole": {
        "Practitioner": ["practitioner"],
        "Organization": ["organization"],
        "Location": ["location"],
        "HealthcareService": ["healthcareService"],
        "Endpoint": ["endpoint"]
    },
    "Procedure": {
        "CarePlan": ["basedOn"],
        "ServiceRequest": ["basedOn"],
        "Procedure": ["partOf", "reasonReference"],
        "Observation": ["partOf", "reasonReference"],
        "MedicationAdministration": ["partOf"],
        "Patient": ["subject", "recorder", "asserter", "performer.actor"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "RelatedPerson": ["recorder", "asserter", "performer.actor"],
        "Practitioner": ["recorder", "asserter", "performer.actor"],
        "PractitionerRole": ["recorder", "asserter", "performer.actor"],
        "Organization": ["performer.actor", "performer.onBehalfOf"],
        "Device": ["performer.actor", "focalDevice.manipulated", "usedReference"],
        "Location": ["location"],
        "Condition": ["reasonReference", "complicationDetail"],
        "DiagnosticReport": ["reasonReference", "report"],
        "DocumentReference": ["reasonReference", "report"],
        "Composition": ["report"],
        "Medication": ["usedReference"],
        "Substance": ["usedReference"]
    },
    "Provenance": {
        "Resource": ["target", "entity.what"],
        "Location": ["location"],
        "Practitioner": ["agent.who", "agent.onBehalfOf"],
        "PractitionerRole": ["agent.who", "agent.onBehalfOf"],
        "RelatedPerson": ["agent.who", "agent.onBehalfOf"],
        "Patient": ["agent.who", "agent.onBehalfOf"],
        "Device": ["agent.who", "agent.onBehalfOf"],
        "Organization": ["agent.who", "agent.onBehalfOf"]
    },
    "Questionnaire": {
        "Resource": [
            "item.enableWhen.answerReference",
            "item.answerOption.valueReference",
            "item.initial.valueReference"
        ]
    },
    "QuestionnaireResponse": {
        "CarePlan": ["basedOn"],
        "ServiceRequest": ["basedOn"],
        "Observation": ["partOf"],
        "Procedure": ["partOf"],
        "Resource": ["subject", "item.answer.valueReference"],
        "Encounter": ["encounter"],
        "Device": ["author"],
        "Practitioner": ["author", "source"],
        "PractitionerRole": ["author", "source"],
        "Patient": ["author", "source"],
        "RelatedPerson": ["author", "source"],
        "Organization": ["author"]
    },
    "RelatedPerson": { "Patient": ["patient"] },
    "RequestGroup": {
        "Resource": ["basedOn", "replaces", "action.resource"],
        "Patient": ["subject", "action.participant"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "Device": ["author", "action.participant"],
        "Practitioner": ["author", "action.participant"],
        "PractitionerRole": ["author", "action.participant"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"],
        "RelatedPerson": ["action.participant"]
    },
    "ResearchDefinition": {
        "Group": ["subjectReference"],
        "ResearchElementDefinition": ["population", "exposure", "exposureAlternative", "outcome"]
    },
    "ResearchElementDefinition": { "Group": ["subjectReference"] },
    "ResearchStudy": {
        "PlanDefinition": ["protocol"],
        "ResearchStudy": ["partOf"],
        "Group": ["enrollment"],
        "Organization": ["sponsor"],
        "Practitioner": ["principalInvestigator"],
        "PractitionerRole": ["principalInvestigator"],
        "Location": ["site"]
    },
    "ResearchSubject": { "ResearchStudy": ["study"], "Patient": ["individual"], "Consent": ["consent"] },
    "RiskAssessment": {
        "Resource": ["basedOn", "parent", "basis"],
        "Patient": ["subject"],
        "Group": ["subject"],
        "Encounter": ["encounter"],
        "Condition": ["condition", "reasonReference"],
        "Practitioner": ["performer"],
        "PractitionerRole": ["performer"],
        "Device": ["performer"],
        "Observation": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"]
    },
    "RiskEvidenceSynthesis": { "EvidenceVariable": ["population", "exposure", "outcome"] },
    "Schedule": {
        "Patient": ["actor"],
        "Practitioner": ["actor"],
        "PractitionerRole": ["actor"],
        "RelatedPerson": ["actor"],
        "Device": ["actor"],
        "HealthcareService": ["actor"],
        "Location": ["actor"]
    },
    "ServiceRequest": {
        "CarePlan": ["basedOn"],
        "ServiceRequest": ["basedOn", "replaces"],
        "MedicationRequest": ["basedOn"],
        "Patient": ["subject", "requester", "performer"],
        "Group": ["subject"],
        "Location": ["subject", "locationReference"],
        "Device": ["subject", "requester", "performer"],
        "Encounter": ["encounter"],
        "Practitioner": ["requester", "performer"],
        "PractitionerRole": ["requester", "performer"],
        "Organization": ["requester", "performer"],
        "RelatedPerson": ["requester", "performer"],
        "CareTeam": ["performer"],
        "HealthcareService": ["performer"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"],
        "Coverage": ["insurance"],
        "ClaimResponse": ["insurance"],
        "Resource": ["supportingInfo"],
        "Specimen": ["specimen"],
        "Provenance": ["relevantHistory"]
    },
    "Slot": { "Schedule": ["schedule"] },
    "Specimen": {
        "Patient": ["subject"],
        "Group": ["subject"],
        "Device": ["subject"],
        "Substance": ["subject", "processing.additive", "container.additiveReference"],
        "Location": ["subject"],
        "Specimen": ["parent"],
        "ServiceRequest": ["request"],
        "Practitioner": ["collection.collector"],
        "PractitionerRole": ["collection.collector"]
    },
    "SpecimenDefinition": { "Substance": ["typeTested.container.additive.additiveReference"] },
    "Substance": { "Substance": ["ingredient.substanceReference"] },
    "SubstanceReferenceInformation": {
        "DocumentReference": ["gene.source", "geneElement.source", "classification.source", "target.source"]
    },
    "SubstanceSpecification": {
        "DocumentReference": ["source", "structure.source", "code.source", "name.source", "relationship.source"],
        "SubstanceSpecification": ["property.definingSubstanceReference", "relationship.substanceReference"],
        "Substance": ["property.definingSubstanceReference"],
        "SubstanceReferenceInformation": ["referenceInformation"],
        "SubstanceNucleicAcid": ["nucleicAcid"],
        "SubstancePolymer": ["polymer"],
        "SubstanceProtein": ["protein"],
        "SubstanceSourceMaterial": ["sourceMaterial"]
    },
    "SupplyDelivery": {
        "SupplyRequest": ["basedOn"],
        "SupplyDelivery": ["partOf"],
        "Contract": ["partOf"],
        "Patient": ["patient"],
        "Medication": ["suppliedItem.itemReference"],
        "Substance": ["suppliedItem.itemReference"],
        "Device": ["suppliedItem.itemReference"],
        "Practitioner": ["supplier", "receiver"],
        "PractitionerRole": ["supplier", "receiver"],
        "Organization": ["supplier"],
        "Location": ["destination"]
    },
    "SupplyRequest": {
        "Medication": ["itemReference"],
        "Substance": ["itemReference"],
        "Device": ["itemReference", "requester"],
        "Practitioner": ["requester"],
        "PractitionerRole": ["requester"],
        "Organization": ["requester", "supplier", "deliverFrom", "deliverTo"],
        "Patient": ["requester", "deliverTo"],
        "RelatedPerson": ["requester"],
        "HealthcareService": ["supplier"],
        "Condition": ["reasonReference"],
        "Observation": ["reasonReference"],
        "DiagnosticReport": ["reasonReference"],
        "DocumentReference": ["reasonReference"],
        "Location": ["deliverFrom", "deliverTo"]
    },
    "Task": {
        "Resource": ["basedOn", "focus", "for", "reasonReference"],
        "Task": ["partOf"],
        "Encounter": ["encounter"],
        "Device": ["requester", "owner"],
        "Organization": ["requester", "owner", "restriction.recipient"],
        "Patient": ["requester", "owner", "restriction.recipient"],
        "Practitioner": ["requester", "owner", "restriction.recipient"],
        "PractitionerRole": ["requester", "owner", "restriction.recipient"],
        "RelatedPerson": ["requester", "owner", "restriction.recipient"],
        "CareTeam": ["owner"],
        "HealthcareService": ["owner"],
        "Location": ["location"],
        "Coverage": ["insurance"],
        "ClaimResponse": ["insurance"],
        "Provenance": ["relevantHistory"],
        "Group": ["restriction.recipient"]
    },
    "TestReport": { "TestScript": ["testScript"] },
    "TestScript": { "Resource": ["fixture.resource", "profile"] },
    "VerificationResult": {
        "Resource": ["target"],
        "Organization": [
            "primarySource.who",
            "attestation.who",
            "attestation.onBehalfOf",
            "validator.organization"
        ],
        "Practitioner": ["primarySource.who", "attestation.who", "attestation.onBehalfOf"],
        "PractitionerRole": ["primarySource.who", "attestation.who", "attestation.onBehalfOf"]
    },
    "VisionPrescription": {
        "Patient": ["patient"],
        "Encounter": ["encounter"],
        "Practitioner": ["prescriber"],
        "PractitionerRole": ["prescriber"]
    }
}
