From 06eda24da6f00bfd43acbdfc05f3c7095921f3a5 Mon Sep 17 00:00:00 2001 From: yunwwang Date: Fri, 8 Dec 2023 15:06:17 -0600 Subject: [PATCH] FI-2316 Label Reference target profile as MustSupport is there is only one (#139) * Label Reference with single target_profile as must support * exclude US Core v3.1.1 * fix unit test * Also execulde FHIR vital signs from target profiles handling * change to each_with_index * remove index+1 * Update reference_resolution_test otuput message. add V610 to env.production * unit test * regenerate --------- Co-authored-by: Yunwei Wang <> --- .env.production | 3 +- .../v4.0.0/allergy_intolerance/metadata.yml | 2 + .../v4.0.0/blood_pressure/metadata.yml | 2 + .../generated/v4.0.0/bmi/metadata.yml | 2 + .../generated/v4.0.0/body_height/metadata.yml | 2 + .../v4.0.0/body_temperature/metadata.yml | 2 + .../generated/v4.0.0/body_weight/metadata.yml | 2 + .../generated/v4.0.0/care_plan/metadata.yml | 2 + .../generated/v4.0.0/care_team/metadata.yml | 2 + .../generated/v4.0.0/condition/metadata.yml | 2 + .../generated/v4.0.0/device/metadata.yml | 2 + .../v4.0.0/diagnostic_report_lab/metadata.yml | 4 + .../diagnostic_report_note/metadata.yml | 4 + .../v4.0.0/document_reference/metadata.yml | 4 + .../generated/v4.0.0/encounter/metadata.yml | 4 + .../generated/v4.0.0/goal/metadata.yml | 2 + .../v4.0.0/head_circumference/metadata.yml | 2 + .../metadata.yml | 2 + .../generated/v4.0.0/heart_rate/metadata.yml | 2 + .../v4.0.0/immunization/metadata.yml | 2 + .../v4.0.0/medication_request/metadata.yml | 4 + .../generated/v4.0.0/metadata.yml | 72 ++++++++++++ .../v4.0.0/observation_lab/metadata.yml | 2 + .../v4.0.0/pediatric_bmi_for_age/metadata.yml | 2 + .../pediatric_weight_for_height/metadata.yml | 2 + .../generated/v4.0.0/procedure/metadata.yml | 2 + .../generated/v4.0.0/provenance/metadata.yml | 2 + .../v4.0.0/pulse_oximetry/metadata.yml | 2 + .../v4.0.0/respiratory_rate/metadata.yml | 2 + .../v4.0.0/smokingstatus/metadata.yml | 2 + .../v5.0.1/allergy_intolerance/metadata.yml | 2 + .../v5.0.1/blood_pressure/metadata.yml | 2 + .../generated/v5.0.1/bmi/metadata.yml | 2 + .../generated/v5.0.1/body_height/metadata.yml | 2 + .../v5.0.1/body_temperature/metadata.yml | 2 + .../generated/v5.0.1/body_weight/metadata.yml | 2 + .../generated/v5.0.1/care_plan/metadata.yml | 2 + .../generated/v5.0.1/care_team/metadata.yml | 2 + .../metadata.yml | 4 + .../metadata.yml | 2 + .../generated/v5.0.1/device/metadata.yml | 2 + .../v5.0.1/diagnostic_report_lab/metadata.yml | 4 + .../diagnostic_report_note/metadata.yml | 4 + .../v5.0.1/document_reference/metadata.yml | 4 + .../generated/v5.0.1/encounter/metadata.yml | 4 + .../generated/v5.0.1/goal/metadata.yml | 2 + .../v5.0.1/head_circumference/metadata.yml | 2 + .../metadata.yml | 2 + .../generated/v5.0.1/heart_rate/metadata.yml | 2 + .../v5.0.1/immunization/metadata.yml | 2 + .../v5.0.1/medication_request/metadata.yml | 4 + .../generated/v5.0.1/metadata.yml | 92 +++++++++++++++ .../observation_clinical_test/metadata.yml | 2 + .../v5.0.1/observation_imaging/metadata.yml | 2 + .../v5.0.1/observation_lab/metadata.yml | 2 + .../observation_sdoh_assessment/metadata.yml | 2 + .../metadata.yml | 2 + .../observation_social_history/metadata.yml | 2 + .../v5.0.1/pediatric_bmi_for_age/metadata.yml | 2 + .../pediatric_weight_for_height/metadata.yml | 2 + .../generated/v5.0.1/procedure/metadata.yml | 2 + .../generated/v5.0.1/provenance/metadata.yml | 2 + .../v5.0.1/pulse_oximetry/metadata.yml | 2 + .../questionnaire_response/metadata.yml | 2 + .../v5.0.1/related_person/metadata.yml | 2 + .../v5.0.1/respiratory_rate/metadata.yml | 2 + .../v5.0.1/service_request/metadata.yml | 2 + .../v5.0.1/smokingstatus/metadata.yml | 2 + .../v6.1.0/allergy_intolerance/metadata.yml | 2 + .../v6.1.0/blood_pressure/metadata.yml | 2 + .../generated/v6.1.0/bmi/metadata.yml | 2 + .../generated/v6.1.0/body_height/metadata.yml | 2 + .../v6.1.0/body_temperature/metadata.yml | 2 + .../generated/v6.1.0/body_weight/metadata.yml | 2 + .../generated/v6.1.0/care_plan/metadata.yml | 2 + .../generated/v6.1.0/care_team/metadata.yml | 2 + .../metadata.yml | 4 + .../metadata.yml | 2 + .../generated/v6.1.0/coverage/metadata.yml | 2 + .../generated/v6.1.0/device/metadata.yml | 2 + .../v6.1.0/diagnostic_report_lab/metadata.yml | 4 + .../diagnostic_report_note/metadata.yml | 4 + .../v6.1.0/document_reference/metadata.yml | 4 + .../generated/v6.1.0/encounter/metadata.yml | 4 + .../generated/v6.1.0/goal/metadata.yml | 2 + .../v6.1.0/head_circumference/metadata.yml | 2 + .../metadata.yml | 2 + .../generated/v6.1.0/heart_rate/metadata.yml | 2 + .../v6.1.0/immunization/metadata.yml | 2 + .../v6.1.0/medication_dispense/metadata.yml | 4 + .../v6.1.0/medication_request/metadata.yml | 4 + .../generated/v6.1.0/metadata.yml | 106 ++++++++++++++++++ .../observation_clinical_result/metadata.yml | 2 + .../v6.1.0/observation_lab/metadata.yml | 4 + .../observation_occupation/metadata.yml | 2 + .../observation_pregnancyintent/metadata.yml | 2 + .../observation_pregnancystatus/metadata.yml | 2 + .../metadata.yml | 2 + .../metadata.yml | 2 + .../v6.1.0/pediatric_bmi_for_age/metadata.yml | 2 + .../pediatric_weight_for_height/metadata.yml | 2 + .../generated/v6.1.0/procedure/metadata.yml | 2 + .../generated/v6.1.0/provenance/metadata.yml | 2 + .../v6.1.0/pulse_oximetry/metadata.yml | 2 + .../questionnaire_response/metadata.yml | 2 + .../v6.1.0/related_person/metadata.yml | 2 + .../v6.1.0/respiratory_rate/metadata.yml | 2 + .../v6.1.0/service_request/metadata.yml | 2 + .../v6.1.0/simple_observation/metadata.yml | 2 + .../v6.1.0/smokingstatus/metadata.yml | 2 + .../generated/v6.1.0/specimen/metadata.yml | 2 + .../must_support_metadata_extractor.rb | 20 +++- .../reference_resolution_test.rb | 4 +- spec/us_core/reference_test_spec.rb | 10 +- 114 files changed, 545 insertions(+), 14 deletions(-) diff --git a/.env.production b/.env.production index 1ec67dfef..5101169c7 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,5 @@ REDIS_URL=redis://redis:6379/0 V311_VALIDATOR_URL=http://validator_service:4567 V400_VALIDATOR_URL=http://validator_service:4567 -V501_VALIDATOR_URL=http://validator_service:4567 \ No newline at end of file +V501_VALIDATOR_URL=http://validator_service:4567 +V610_VALIDATOR_URL=http://validator_service:4567 \ No newline at end of file diff --git a/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/metadata.yml index 6aabdce15..c8d1847f7 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/metadata.yml @@ -82,6 +82,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: reaction - :path: reaction.manifestation :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/metadata.yml index 2fa1f964c..7b8e6ab39 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/metadata.yml @@ -180,6 +180,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: component diff --git a/lib/us_core_test_kit/generated/v4.0.0/bmi/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/bmi/metadata.yml index afcb94ed8..551a48726 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/bmi/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/bmi/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/body_height/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/body_height/metadata.yml index 12e0bb794..889275887 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/body_height/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/body_height/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/body_temperature/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/body_temperature/metadata.yml index a7f285476..e983eacbd 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/body_temperature/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/body_temperature/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/body_weight/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/body_weight/metadata.yml index cbb231eee..01c249b03 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/body_weight/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/body_weight/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/care_plan/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/care_plan/metadata.yml index 600bcb8ec..6c4ea0e8a 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/care_plan/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/care_plan/metadata.yml @@ -144,6 +144,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - CarePlan.text - CarePlan.text.status diff --git a/lib/us_core_test_kit/generated/v4.0.0/care_team/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/care_team/metadata.yml index 6e1d371f7..5c63f08ea 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/care_team/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/care_team/metadata.yml @@ -75,6 +75,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.role - :path: participant.member diff --git a/lib/us_core_test_kit/generated/v4.0.0/condition/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/condition/metadata.yml index 327a99751..f08cc76b6 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/condition/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/condition/metadata.yml @@ -149,6 +149,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Condition.category - Condition.code diff --git a/lib/us_core_test_kit/generated/v4.0.0/device/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/device/metadata.yml index e3fc7e566..1ba0d6023 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/device/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/device/metadata.yml @@ -82,6 +82,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: distinctIdentifier :mandatory_elements: - Device.udiCarrier.deviceIdentifier diff --git a/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/metadata.yml index 1c041ceec..df80c55fb 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/metadata.yml @@ -161,6 +161,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: issued @@ -172,6 +174,8 @@ - :path: result :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab :mandatory_elements: - DiagnosticReport.status - DiagnosticReport.category diff --git a/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/metadata.yml index a78111f62..d4bb9ec88 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/metadata.yml @@ -155,9 +155,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: effectiveDateTime :original_path: effective[x] - :path: issued diff --git a/lib/us_core_test_kit/generated/v4.0.0/document_reference/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/document_reference/metadata.yml index acf57922e..454a986ee 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/document_reference/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/document_reference/metadata.yml @@ -185,6 +185,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: date - :path: author :types: @@ -201,6 +203,8 @@ - :path: context.encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: context.period :choices: - :paths: diff --git a/lib/us_core_test_kit/generated/v4.0.0/encounter/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/encounter/metadata.yml index c6ca30ace..cc9f0f7e5 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/encounter/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/encounter/metadata.yml @@ -176,6 +176,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.type - :path: participant.period @@ -200,6 +202,8 @@ - :path: serviceProvider :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization :choices: - :paths: - reasonCode diff --git a/lib/us_core_test_kit/generated/v4.0.0/goal/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/goal/metadata.yml index ea1e86bc2..462390454 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/goal/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/goal/metadata.yml @@ -110,6 +110,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: target - :path: target.dueDate :original_path: target.due[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/head_circumference/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/head_circumference/metadata.yml index a4171cc30..8239754e9 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/head_circumference/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/head_circumference/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/metadata.yml index cb409b3bd..bacc6333f 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/heart_rate/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/heart_rate/metadata.yml index 9610caf38..a4c300942 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/heart_rate/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/heart_rate/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/immunization/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/immunization/metadata.yml index 0619e3a5c..c1d3cb18e 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/immunization/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/immunization/metadata.yml @@ -105,6 +105,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrenceDateTime :original_path: occurrence[x] - :path: primarySource diff --git a/lib/us_core_test_kit/generated/v4.0.0/medication_request/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/medication_request/metadata.yml index 8fb68bfb7..f9e010e93 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/medication_request/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/medication_request/metadata.yml @@ -160,9 +160,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: authoredOn - :path: requester :types: diff --git a/lib/us_core_test_kit/generated/v4.0.0/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/metadata.yml index 2f879415c..4bf2d1f3f 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/metadata.yml @@ -84,6 +84,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: reaction - :path: reaction.manifestation :mandatory_elements: @@ -280,6 +282,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - CarePlan.text - CarePlan.text.status @@ -469,6 +473,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.role - :path: participant.member @@ -666,6 +672,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Condition.category - Condition.code @@ -790,6 +798,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: distinctIdentifier :mandatory_elements: - Device.udiCarrier.deviceIdentifier @@ -992,6 +1002,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: issued @@ -1003,6 +1015,8 @@ - :path: result :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab :mandatory_elements: - DiagnosticReport.status - DiagnosticReport.category @@ -1215,9 +1229,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: effectiveDateTime :original_path: effective[x] - :path: issued @@ -1473,6 +1491,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: date - :path: author :types: @@ -1489,6 +1509,8 @@ - :path: context.encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: context.period :choices: - :paths: @@ -1743,6 +1765,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.type - :path: participant.period @@ -1767,6 +1791,8 @@ - :path: serviceProvider :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization :choices: - :paths: - reasonCode @@ -1974,6 +2000,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: target - :path: target.dueDate :original_path: target.due[x] @@ -2114,6 +2142,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrenceDateTime :original_path: occurrence[x] - :path: primarySource @@ -2288,6 +2318,8 @@ - :path: managingOrganization :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization :mandatory_elements: - Location.name - Location.position.longitude @@ -2542,9 +2574,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: authoredOn - :path: requester :types: @@ -2799,6 +2835,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -3053,6 +3091,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: component @@ -3338,6 +3378,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -3595,6 +3637,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -3855,6 +3899,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -4115,6 +4161,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -4375,6 +4423,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -4635,6 +4685,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -4892,6 +4944,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -5150,6 +5204,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -5407,6 +5463,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -5691,6 +5749,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -5978,6 +6038,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -6227,6 +6289,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Observation.status - Observation.category @@ -6909,9 +6973,13 @@ - :path: practitioner :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner - :path: organization :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization - :path: code - :path: specialty - :path: location @@ -7090,6 +7158,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: performedDateTime :original_path: performed[x] :mandatory_elements: @@ -7241,6 +7311,8 @@ - :path: agent.onBehalfOf :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization - :path: agent:ProvenanceAuthor.type - :path: agent:ProvenanceTransmitter.type :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v4.0.0/observation_lab/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/observation_lab/metadata.yml index 18fab1a4a..7dc66826a 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/observation_lab/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/observation_lab/metadata.yml @@ -155,6 +155,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/metadata.yml index 745eca515..4643ebaca 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/metadata.yml index ecb2f154e..ecf987606 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/procedure/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/procedure/metadata.yml index cd33ba3a7..c21b0e921 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/procedure/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/procedure/metadata.yml @@ -126,6 +126,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: performedDateTime :original_path: performed[x] :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v4.0.0/provenance/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/provenance/metadata.yml index 8b7aa6384..3b4a1ba73 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/provenance/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/provenance/metadata.yml @@ -70,6 +70,8 @@ - :path: agent.onBehalfOf :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization - :path: agent:ProvenanceAuthor.type - :path: agent:ProvenanceTransmitter.type :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/metadata.yml index a4dbd9dbd..64b1c8752 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/metadata.yml @@ -197,6 +197,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/metadata.yml index bd531063d..76bf57250 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/metadata.yml b/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/metadata.yml index a9fd79197..08920d731 100644 --- a/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/metadata.yml +++ b/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/metadata.yml @@ -162,6 +162,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Observation.status - Observation.category diff --git a/lib/us_core_test_kit/generated/v5.0.1/allergy_intolerance/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/allergy_intolerance/metadata.yml index 140fa5e17..39d3f33dd 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/allergy_intolerance/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/allergy_intolerance/metadata.yml @@ -82,6 +82,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: reaction - :path: reaction.manifestation :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v5.0.1/blood_pressure/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/blood_pressure/metadata.yml index 74a56a957..e4f698a7b 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/blood_pressure/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/blood_pressure/metadata.yml @@ -180,6 +180,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: component diff --git a/lib/us_core_test_kit/generated/v5.0.1/bmi/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/bmi/metadata.yml index 93230fb85..3ab04dff4 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/bmi/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/bmi/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/body_height/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/body_height/metadata.yml index 25a35c0a2..9304ae501 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/body_height/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/body_height/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/body_temperature/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/body_temperature/metadata.yml index abf662526..ec04f6fde 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/body_temperature/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/body_temperature/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/body_weight/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/body_weight/metadata.yml index 0495ec464..f5c39a369 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/body_weight/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/body_weight/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/care_plan/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/care_plan/metadata.yml index f8a9cbec7..c115840c3 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/care_plan/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/care_plan/metadata.yml @@ -144,6 +144,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - CarePlan.text - CarePlan.text.status diff --git a/lib/us_core_test_kit/generated/v5.0.1/care_team/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/care_team/metadata.yml index 38a79980e..1f6536d6d 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/care_team/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/care_team/metadata.yml @@ -100,6 +100,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.role - :path: participant.member diff --git a/lib/us_core_test_kit/generated/v5.0.1/condition_encounter_diagnosis/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/condition_encounter_diagnosis/metadata.yml index 79d67a3d0..440474132 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/condition_encounter_diagnosis/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/condition_encounter_diagnosis/metadata.yml @@ -252,9 +252,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: onsetDateTime :original_path: onset[x] - :path: abatementDateTime diff --git a/lib/us_core_test_kit/generated/v5.0.1/condition_problems_health_concerns/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/condition_problems_health_concerns/metadata.yml index 9d483b4a7..10ef69519 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/condition_problems_health_concerns/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/condition_problems_health_concerns/metadata.yml @@ -264,6 +264,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: onsetDateTime :original_path: onset[x] - :path: abatementDateTime diff --git a/lib/us_core_test_kit/generated/v5.0.1/device/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/device/metadata.yml index a24adff0c..0d93d7e0e 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/device/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/device/metadata.yml @@ -83,6 +83,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Device.udiCarrier.deviceIdentifier - Device.deviceName.name diff --git a/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_lab/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_lab/metadata.yml index cffc14532..6dce830f1 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_lab/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_lab/metadata.yml @@ -161,6 +161,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: issued @@ -172,6 +174,8 @@ - :path: result :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab :mandatory_elements: - DiagnosticReport.status - DiagnosticReport.category diff --git a/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_note/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_note/metadata.yml index 860529983..d295f0be4 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_note/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_note/metadata.yml @@ -166,9 +166,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: effectiveDateTime :original_path: effective[x] - :path: issued diff --git a/lib/us_core_test_kit/generated/v5.0.1/document_reference/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/document_reference/metadata.yml index ca3761e5c..b0d413dfc 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/document_reference/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/document_reference/metadata.yml @@ -194,6 +194,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: date - :path: author :types: @@ -210,6 +212,8 @@ - :path: context.encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: context.period :choices: - :paths: diff --git a/lib/us_core_test_kit/generated/v5.0.1/encounter/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/encounter/metadata.yml index 4fd19d72d..0230abf04 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/encounter/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/encounter/metadata.yml @@ -208,6 +208,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.type - :path: participant.period @@ -233,6 +235,8 @@ - :path: serviceProvider :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization :choices: - :paths: - reasonCode diff --git a/lib/us_core_test_kit/generated/v5.0.1/goal/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/goal/metadata.yml index 4c07d672c..b147ad887 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/goal/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/goal/metadata.yml @@ -126,6 +126,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: target - :path: target.dueDate :original_path: target.due[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/head_circumference/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/head_circumference/metadata.yml index 721770fe2..cdd48f5d6 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/head_circumference/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/head_circumference/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/head_circumference_percentile/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/head_circumference_percentile/metadata.yml index 644e8b2cf..fd2869d34 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/head_circumference_percentile/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/head_circumference_percentile/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/heart_rate/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/heart_rate/metadata.yml index 8c079992e..32c7b3cb4 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/heart_rate/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/heart_rate/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/immunization/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/immunization/metadata.yml index ecc59e463..0cd8e5058 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/immunization/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/immunization/metadata.yml @@ -105,6 +105,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrenceDateTime :original_path: occurrence[x] - :path: primarySource diff --git a/lib/us_core_test_kit/generated/v5.0.1/medication_request/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/medication_request/metadata.yml index 381907608..09ada876d 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/medication_request/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/medication_request/metadata.yml @@ -172,9 +172,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: authoredOn - :path: requester :types: diff --git a/lib/us_core_test_kit/generated/v5.0.1/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/metadata.yml index 72db27fa9..b8e7d16b7 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/metadata.yml @@ -84,6 +84,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: reaction - :path: reaction.manifestation :mandatory_elements: @@ -280,6 +282,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - CarePlan.text - CarePlan.text.status @@ -494,6 +498,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.role - :path: participant.member @@ -802,9 +808,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: onsetDateTime :original_path: onset[x] - :path: abatementDateTime @@ -1120,6 +1130,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: onsetDateTime :original_path: onset[x] - :path: abatementDateTime @@ -1260,6 +1272,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Device.udiCarrier.deviceIdentifier - Device.deviceName.name @@ -1466,9 +1480,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: effectiveDateTime :original_path: effective[x] - :path: issued @@ -1708,6 +1726,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: issued @@ -1719,6 +1739,8 @@ - :path: result :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab :mandatory_elements: - DiagnosticReport.status - DiagnosticReport.category @@ -1969,6 +1991,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: date - :path: author :types: @@ -1985,6 +2009,8 @@ - :path: context.encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: context.period :choices: - :paths: @@ -2268,6 +2294,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.type - :path: participant.period @@ -2293,6 +2321,8 @@ - :path: serviceProvider :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization :choices: - :paths: - reasonCode @@ -2518,6 +2548,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: target - :path: target.dueDate :original_path: target.due[x] @@ -2658,6 +2690,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrenceDateTime :original_path: occurrence[x] - :path: primarySource @@ -2832,6 +2866,8 @@ - :path: managingOrganization :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization :mandatory_elements: - Location.name - Location.position.longitude @@ -3098,9 +3134,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: authoredOn - :path: requester :types: @@ -3353,6 +3393,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -3637,6 +3679,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: performer @@ -3899,6 +3943,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -4149,6 +4195,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: performer @@ -4405,6 +4453,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -4662,6 +4712,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -4922,6 +4974,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -5206,6 +5260,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -5485,6 +5541,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Observation.status - Observation.category @@ -5709,6 +5767,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] :mandatory_elements: @@ -5946,6 +6006,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -6206,6 +6268,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -6466,6 +6530,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -6733,6 +6799,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: component @@ -7006,6 +7074,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -7696,6 +7766,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -7940,6 +8012,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -8198,6 +8272,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -8455,6 +8531,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] @@ -9214,9 +9292,13 @@ - :path: practitioner :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner - :path: organization :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization - :path: code - :path: specialty - :path: location @@ -9395,6 +9477,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: performedDateTime :original_path: performed[x] :mandatory_elements: @@ -9545,6 +9629,8 @@ - :path: agent.onBehalfOf :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization - :path: agent:ProvenanceAuthor.type - :path: agent:ProvenanceTransmitter.type :mandatory_elements: @@ -9800,6 +9886,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: authored - :path: author :types: @@ -9940,6 +10028,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: relationship - :path: name - :path: telecom @@ -10148,6 +10238,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrencePeriod :original_path: occurrence[x] - :path: authoredOn diff --git a/lib/us_core_test_kit/generated/v5.0.1/observation_clinical_test/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/observation_clinical_test/metadata.yml index 3a2d8fb1f..9edcad24f 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/observation_clinical_test/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/observation_clinical_test/metadata.yml @@ -616,6 +616,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v5.0.1/observation_imaging/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/observation_imaging/metadata.yml index 21f1ca1ce..984cb0ce3 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/observation_imaging/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/observation_imaging/metadata.yml @@ -155,6 +155,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v5.0.1/observation_lab/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/observation_lab/metadata.yml index 5a4077eed..a55d4fe6d 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/observation_lab/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/observation_lab/metadata.yml @@ -155,6 +155,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/metadata.yml index f0492fe36..4527411a9 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/metadata.yml @@ -210,6 +210,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: performer diff --git a/lib/us_core_test_kit/generated/v5.0.1/observation_sexual_orientation/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/observation_sexual_orientation/metadata.yml index 4c48f484c..0ea8a6818 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/observation_sexual_orientation/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/observation_sexual_orientation/metadata.yml @@ -156,6 +156,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v5.0.1/observation_social_history/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/observation_social_history/metadata.yml index 8571650e4..8c38a1f57 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/observation_social_history/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/observation_social_history/metadata.yml @@ -163,6 +163,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: performer diff --git a/lib/us_core_test_kit/generated/v5.0.1/pediatric_bmi_for_age/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/pediatric_bmi_for_age/metadata.yml index 6d309116a..3f1bf947a 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/pediatric_bmi_for_age/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/pediatric_bmi_for_age/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/pediatric_weight_for_height/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/pediatric_weight_for_height/metadata.yml index 007b4ee4d..a1dd274a7 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/pediatric_weight_for_height/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/pediatric_weight_for_height/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/procedure/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/procedure/metadata.yml index 5a2103924..db295311c 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/procedure/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/procedure/metadata.yml @@ -126,6 +126,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: performedDateTime :original_path: performed[x] :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v5.0.1/provenance/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/provenance/metadata.yml index 913989f25..d893873db 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/provenance/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/provenance/metadata.yml @@ -70,6 +70,8 @@ - :path: agent.onBehalfOf :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization - :path: agent:ProvenanceAuthor.type - :path: agent:ProvenanceTransmitter.type :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v5.0.1/pulse_oximetry/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/pulse_oximetry/metadata.yml index c108e8108..606d77daa 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/pulse_oximetry/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/pulse_oximetry/metadata.yml @@ -197,6 +197,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/metadata.yml index 86ddb559c..9f812b4a5 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/metadata.yml @@ -176,6 +176,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: authored - :path: author :types: diff --git a/lib/us_core_test_kit/generated/v5.0.1/related_person/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/related_person/metadata.yml index 787763907..f26ef60e4 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/related_person/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/related_person/metadata.yml @@ -74,6 +74,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: relationship - :path: name - :path: telecom diff --git a/lib/us_core_test_kit/generated/v5.0.1/respiratory_rate/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/respiratory_rate/metadata.yml index 58faaa6db..a570add6a 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/respiratory_rate/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/respiratory_rate/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: value[x] diff --git a/lib/us_core_test_kit/generated/v5.0.1/service_request/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/service_request/metadata.yml index 7834ef45c..a6d8ae4eb 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/service_request/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/service_request/metadata.yml @@ -189,6 +189,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrencePeriod :original_path: occurrence[x] - :path: authoredOn diff --git a/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/metadata.yml b/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/metadata.yml index 1f2658c72..8bdb6a2c0 100644 --- a/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/metadata.yml +++ b/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/metadata.yml @@ -162,6 +162,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Observation.status - Observation.category diff --git a/lib/us_core_test_kit/generated/v6.1.0/allergy_intolerance/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/allergy_intolerance/metadata.yml index ddb676db6..ff990e9df 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/allergy_intolerance/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/allergy_intolerance/metadata.yml @@ -82,6 +82,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: reaction - :path: reaction.manifestation :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v6.1.0/blood_pressure/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/blood_pressure/metadata.yml index 109542542..1810fa310 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/blood_pressure/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/blood_pressure/metadata.yml @@ -180,6 +180,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: component diff --git a/lib/us_core_test_kit/generated/v6.1.0/bmi/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/bmi/metadata.yml index 910fc2ba8..3e76482c2 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/bmi/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/bmi/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/body_height/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/body_height/metadata.yml index 43c933059..1a85967b7 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/body_height/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/body_height/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/body_temperature/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/body_temperature/metadata.yml index 67056a639..9e980e19f 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/body_temperature/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/body_temperature/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/body_weight/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/body_weight/metadata.yml index e8a0c8eac..fcdd17046 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/body_weight/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/body_weight/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/care_plan/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/care_plan/metadata.yml index 1525e0937..ae393f951 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/care_plan/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/care_plan/metadata.yml @@ -144,6 +144,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - CarePlan.text.status - CarePlan.text.div diff --git a/lib/us_core_test_kit/generated/v6.1.0/care_team/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/care_team/metadata.yml index 726aed826..945fb3e50 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/care_team/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/care_team/metadata.yml @@ -100,6 +100,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.role - :path: participant.member diff --git a/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/metadata.yml index ce0ab7d53..3d311c041 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/metadata.yml @@ -259,9 +259,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: onsetDateTime :original_path: onset[x] - :path: abatementDateTime diff --git a/lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/metadata.yml index b4fb75a3b..2bd9dba66 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/condition_problems_health_concerns/metadata.yml @@ -278,6 +278,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: onsetDateTime :original_path: onset[x] - :path: abatementDateTime diff --git a/lib/us_core_test_kit/generated/v6.1.0/coverage/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/coverage/metadata.yml index e4970b002..22f97b617 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/coverage/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/coverage/metadata.yml @@ -87,6 +87,8 @@ - :path: beneficiary :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: relationship - :path: period - :path: payor diff --git a/lib/us_core_test_kit/generated/v6.1.0/device/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/device/metadata.yml index 2e2e582b2..2c2384c44 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/device/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/device/metadata.yml @@ -104,6 +104,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Device.udiCarrier.deviceIdentifier - Device.deviceName.name diff --git a/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_lab/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_lab/metadata.yml index c204cda04..b7509a7e6 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_lab/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_lab/metadata.yml @@ -161,6 +161,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: issued @@ -172,6 +174,8 @@ - :path: result :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab :mandatory_elements: - DiagnosticReport.status - DiagnosticReport.category diff --git a/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/metadata.yml index 276220613..662aa889e 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/metadata.yml @@ -166,9 +166,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: effectiveDateTime :original_path: effective[x] - :path: issued diff --git a/lib/us_core_test_kit/generated/v6.1.0/document_reference/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/document_reference/metadata.yml index 29abad030..a2c725617 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/document_reference/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/document_reference/metadata.yml @@ -195,6 +195,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: date - :path: author :types: @@ -211,6 +213,8 @@ - :path: context.encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: context.period :choices: - :paths: diff --git a/lib/us_core_test_kit/generated/v6.1.0/encounter/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/encounter/metadata.yml index 8d3811cf4..52e675028 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/encounter/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/encounter/metadata.yml @@ -208,6 +208,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.type - :path: participant.period @@ -233,6 +235,8 @@ - :path: serviceProvider :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization :choices: - :paths: - reasonCode diff --git a/lib/us_core_test_kit/generated/v6.1.0/goal/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/goal/metadata.yml index 8d228f8ad..4ac84d9aa 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/goal/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/goal/metadata.yml @@ -126,6 +126,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: startDate :original_path: start[x] - :path: target diff --git a/lib/us_core_test_kit/generated/v6.1.0/head_circumference/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/head_circumference/metadata.yml index 48f9c4c36..0628beffe 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/head_circumference/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/head_circumference/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/head_circumference_percentile/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/head_circumference_percentile/metadata.yml index 4a64c65b9..8aca0afe5 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/head_circumference_percentile/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/head_circumference_percentile/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/heart_rate/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/heart_rate/metadata.yml index 383f8a7ff..c2b77ecee 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/heart_rate/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/heart_rate/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/immunization/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/immunization/metadata.yml index 9a1c31af7..b2c4919aa 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/immunization/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/immunization/metadata.yml @@ -105,6 +105,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrenceDateTime :original_path: occurrence[x] - :path: primarySource diff --git a/lib/us_core_test_kit/generated/v6.1.0/medication_dispense/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/medication_dispense/metadata.yml index 2544bb151..26f29d5b0 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/medication_dispense/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/medication_dispense/metadata.yml @@ -127,6 +127,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: performer - :path: performer.actor :types: @@ -137,6 +139,8 @@ - :path: authorizingPrescription :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest - :path: type - :path: quantity - :path: whenHandedOver diff --git a/lib/us_core_test_kit/generated/v6.1.0/medication_request/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/medication_request/metadata.yml index e336b9b73..114c1abab 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/medication_request/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/medication_request/metadata.yml @@ -172,9 +172,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: authoredOn - :path: requester :types: diff --git a/lib/us_core_test_kit/generated/v6.1.0/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/metadata.yml index c45c37fd1..750d630ad 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/metadata.yml @@ -84,6 +84,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: reaction - :path: reaction.manifestation :mandatory_elements: @@ -280,6 +282,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - CarePlan.text.status - CarePlan.text.div @@ -493,6 +497,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.role - :path: participant.member @@ -807,9 +813,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: onsetDateTime :original_path: onset[x] - :path: abatementDateTime @@ -1139,6 +1149,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: onsetDateTime :original_path: onset[x] - :path: abatementDateTime @@ -1283,6 +1295,8 @@ - :path: beneficiary :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: relationship - :path: period - :path: payor @@ -1448,6 +1462,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Device.udiCarrier.deviceIdentifier - Device.deviceName.name @@ -1654,9 +1670,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: effectiveDateTime :original_path: effective[x] - :path: issued @@ -1895,6 +1915,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: issued @@ -1906,6 +1928,8 @@ - :path: result :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab :mandatory_elements: - DiagnosticReport.status - DiagnosticReport.category @@ -2157,6 +2181,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: date - :path: author :types: @@ -2173,6 +2199,8 @@ - :path: context.encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: context.period :choices: - :paths: @@ -2456,6 +2484,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: participant - :path: participant.type - :path: participant.period @@ -2481,6 +2511,8 @@ - :path: serviceProvider :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization :choices: - :paths: - reasonCode @@ -2706,6 +2738,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: startDate :original_path: start[x] - :path: target @@ -2852,6 +2886,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrenceDateTime :original_path: occurrence[x] - :path: primarySource @@ -3025,6 +3061,8 @@ - :path: managingOrganization :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization :mandatory_elements: - Location.name - Location.position.longitude @@ -3246,6 +3284,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: performer - :path: performer.actor :types: @@ -3256,6 +3296,8 @@ - :path: authorizingPrescription :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest - :path: type - :path: quantity - :path: whenHandedOver @@ -3501,9 +3543,13 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: encounter :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter - :path: authoredOn - :path: requester :types: @@ -3772,6 +3818,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -3783,6 +3831,8 @@ - :path: specimen :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-specimen :mandatory_elements: - Observation.status - Observation.category @@ -4034,6 +4084,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Observation.status - Observation.code @@ -4278,6 +4330,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Observation.status - Observation.code @@ -4530,6 +4584,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: component - :path: component:industry.code - :path: component:industry.value[x] @@ -4770,6 +4826,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -5041,6 +5099,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: performer @@ -5299,6 +5359,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -5561,6 +5623,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -5826,6 +5890,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -6121,6 +6187,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -6412,6 +6480,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: valueCodeableConcept :original_path: value[x] :mandatory_elements: @@ -6647,6 +6717,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] :mandatory_elements: @@ -6884,6 +6956,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -7149,6 +7223,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -7414,6 +7490,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -7672,6 +7750,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: performer @@ -7949,6 +8029,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: component @@ -8234,6 +8316,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -8478,6 +8562,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -8741,6 +8827,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -9003,6 +9091,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -9815,9 +9905,13 @@ - :path: practitioner :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner - :path: organization :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization - :path: code - :path: specialty - :path: location @@ -10000,6 +10094,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: performedDateTime :original_path: performed[x] :mandatory_elements: @@ -10150,6 +10246,8 @@ - :path: agent.onBehalfOf :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization - :path: agent:ProvenanceAuthor.type - :path: agent:ProvenanceTransmitter.type :mandatory_elements: @@ -10371,6 +10469,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: authored - :path: author :types: @@ -10531,6 +10631,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: relationship - :path: name - :path: telecom @@ -10745,6 +10847,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrencePeriod :original_path: occurrence[x] - :path: authoredOn @@ -10917,6 +11021,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Specimen.type :bindings: diff --git a/lib/us_core_test_kit/generated/v6.1.0/observation_clinical_result/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/observation_clinical_result/metadata.yml index ef54706b6..6f28a2961 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/observation_clinical_result/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/observation_clinical_result/metadata.yml @@ -167,6 +167,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/observation_lab/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/observation_lab/metadata.yml index 118fffc5d..b44fc7206 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/observation_lab/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/observation_lab/metadata.yml @@ -155,6 +155,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity @@ -166,6 +168,8 @@ - :path: specimen :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-specimen :mandatory_elements: - Observation.status - Observation.category diff --git a/lib/us_core_test_kit/generated/v6.1.0/observation_occupation/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/observation_occupation/metadata.yml index 04afb4752..8721726c4 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/observation_occupation/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/observation_occupation/metadata.yml @@ -185,6 +185,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: component - :path: component:industry.code - :path: component:industry.value[x] diff --git a/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancyintent/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancyintent/metadata.yml index e4257dbc1..9145801da 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancyintent/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancyintent/metadata.yml @@ -177,6 +177,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Observation.status - Observation.code diff --git a/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancystatus/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancystatus/metadata.yml index 282d70858..6851bc34b 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancystatus/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/observation_pregnancystatus/metadata.yml @@ -177,6 +177,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Observation.status - Observation.code diff --git a/lib/us_core_test_kit/generated/v6.1.0/observation_screening_assessment/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/observation_screening_assessment/metadata.yml index a6aaa43f7..c99c8006a 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/observation_screening_assessment/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/observation_screening_assessment/metadata.yml @@ -166,6 +166,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: performer diff --git a/lib/us_core_test_kit/generated/v6.1.0/observation_sexual_orientation/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/observation_sexual_orientation/metadata.yml index caaddf17b..214162816 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/observation_sexual_orientation/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/observation_sexual_orientation/metadata.yml @@ -165,6 +165,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v6.1.0/pediatric_bmi_for_age/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/pediatric_bmi_for_age/metadata.yml index c97801a53..b54f5d4a3 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/pediatric_bmi_for_age/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/pediatric_bmi_for_age/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/pediatric_weight_for_height/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/pediatric_weight_for_height/metadata.yml index 307521739..05cbeb504 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/pediatric_weight_for_height/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/pediatric_weight_for_height/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/procedure/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/procedure/metadata.yml index b1260a5b7..fc84bc37f 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/procedure/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/procedure/metadata.yml @@ -130,6 +130,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: performedDateTime :original_path: performed[x] :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v6.1.0/provenance/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/provenance/metadata.yml index 9218d128e..13e2d4f0d 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/provenance/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/provenance/metadata.yml @@ -70,6 +70,8 @@ - :path: agent.onBehalfOf :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization - :path: agent:ProvenanceAuthor.type - :path: agent:ProvenanceTransmitter.type :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v6.1.0/pulse_oximetry/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/pulse_oximetry/metadata.yml index d87b74812..e3cbd8e4f 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/pulse_oximetry/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/pulse_oximetry/metadata.yml @@ -203,6 +203,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/questionnaire_response/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/questionnaire_response/metadata.yml index dae1cc64d..6d974d294 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/questionnaire_response/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/questionnaire_response/metadata.yml @@ -142,6 +142,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: authored - :path: author :types: diff --git a/lib/us_core_test_kit/generated/v6.1.0/related_person/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/related_person/metadata.yml index 7ec69f197..61f458f31 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/related_person/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/related_person/metadata.yml @@ -95,6 +95,8 @@ - :path: patient :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: relationship - :path: name - :path: telecom diff --git a/lib/us_core_test_kit/generated/v6.1.0/respiratory_rate/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/respiratory_rate/metadata.yml index 54bceff97..d34dd6482 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/respiratory_rate/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/respiratory_rate/metadata.yml @@ -170,6 +170,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: valueQuantity diff --git a/lib/us_core_test_kit/generated/v6.1.0/service_request/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/service_request/metadata.yml index a3889b02f..bc3d3ce62 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/service_request/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/service_request/metadata.yml @@ -195,6 +195,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: occurrencePeriod :original_path: occurrence[x] - :path: authoredOn diff --git a/lib/us_core_test_kit/generated/v6.1.0/simple_observation/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/simple_observation/metadata.yml index 1e610b149..429500f00 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/simple_observation/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/simple_observation/metadata.yml @@ -179,6 +179,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: effectiveDateTime :original_path: effective[x] - :path: performer diff --git a/lib/us_core_test_kit/generated/v6.1.0/smokingstatus/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/smokingstatus/metadata.yml index ad32273cd..4fab211ff 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/smokingstatus/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/smokingstatus/metadata.yml @@ -156,6 +156,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient - :path: valueCodeableConcept :original_path: value[x] :mandatory_elements: diff --git a/lib/us_core_test_kit/generated/v6.1.0/specimen/metadata.yml b/lib/us_core_test_kit/generated/v6.1.0/specimen/metadata.yml index c9a7b5bdc..79bf7b3d6 100644 --- a/lib/us_core_test_kit/generated/v6.1.0/specimen/metadata.yml +++ b/lib/us_core_test_kit/generated/v6.1.0/specimen/metadata.yml @@ -73,6 +73,8 @@ - :path: subject :types: - Reference + :target_profiles: + - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient :mandatory_elements: - Specimen.type :bindings: diff --git a/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb b/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb index da8dc6db6..7d859b16c 100644 --- a/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +++ b/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb @@ -261,17 +261,25 @@ def get_type_must_support_metadata(current_metadata, current_element) end def handle_type_must_support_target_profiles(type, metadata) - index = 0 + # US Core 3.1.1 profiles do not have US Core target profiles. + # Vital Sign proifles from FHIR R4 (version 4.0.1) do not have US Core target profiles either. + return if ['3.1.1', '4.0.1'].include?(profile.version) + target_profiles = [] - type.source_hash['_targetProfile']&.each do |hash| - if hash.present? - element = FHIR::Element.new(hash) - target_profiles << type.targetProfile[index] if type_must_support_extension?(element.extension) + if type.targetProfile&.length == 1 + target_profiles << type.targetProfile.first + else + type.source_hash['_targetProfile']&.each_with_index do |hash, index| + if hash.present? + element = FHIR::Element.new(hash) + target_profiles << type.targetProfile[index] if type_must_support_extension?(element.extension) + end end - index += 1 end + # remove target_profile for FHIR Base resource type. + target_profiles.delete_if { |reference| reference.start_with?('http://hl7.org/fhir/StructureDefinition')} metadata[:target_profiles] = target_profiles if target_profiles.present? end diff --git a/lib/us_core_test_kit/reference_resolution_test.rb b/lib/us_core_test_kit/reference_resolution_test.rb index df1f592e9..e01b348df 100644 --- a/lib/us_core_test_kit/reference_resolution_test.rb +++ b/lib/us_core_test_kit/reference_resolution_test.rb @@ -12,7 +12,7 @@ def perform_reference_resolution_test(resources) pass if unresolved_references(resources).length.zero? - skip "Could not resolve Must Support references #{unresolved_references_strings.join(', ')}" + skip "Could not resolve and validate any Must Support references for #{unresolved_references_strings.join(', ')}" end def unresolved_references_strings @@ -20,7 +20,7 @@ def unresolved_references_strings unresolved_references.each_with_object(Hash.new { |hash, key| hash[key] = [] }) do |missing, hash| hash[missing[:path]] << missing[:target_profile] end - unresolved_reference_hash.map { |path, profiles| "#{path}#{"(#{profiles.join('|')})" unless profiles.first.empty?}" } + unresolved_reference_hash.map { |path, profiles| "#{path} element: Reference#{"(#{profiles.join('|')})" unless profiles.first.empty?}" } end def record_resolved_reference(reference, target_profile) diff --git a/spec/us_core/reference_test_spec.rb b/spec/us_core/reference_test_spec.rb index 2dc808944..d3d4548fa 100644 --- a/spec/us_core/reference_test_spec.rb +++ b/spec/us_core/reference_test_spec.rb @@ -23,16 +23,16 @@ def run(runnable, inputs = {}) let(:test_class) do Class.new(Inferno::Entities::Test) do include USCoreTestKit::ReferenceResolutionTest - + fhir_client { url 'https://example.com/fhir' } end end - + let(:test) do test_class.new(scratch: {}) end let(:base_url) { 'https://example.com/fhir' } - + context 'when the reference has already been resolved' do let(:reference_string) { 'Encounter/123' } let(:resource) do @@ -298,7 +298,7 @@ def run(runnable, inputs = {}) result = run(test_class, url: url) expect(result.result).to eq('skip') - expect(result.result_message).to include('performer(http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization)') + expect(result.result_message).to include('performer element: Reference(http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization)') end end @@ -314,7 +314,7 @@ def run(runnable, inputs = {}) result = run(test_class, url: url) expect(result.result).to eq('skip') - expect(result.result_message).to eq('Could not resolve Must Support references encounter') + expect(result.result_message).to include('Could not resolve and validate any Must Support references for encounter element: Reference(http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter)') end end end