us_core_test_kit 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/us_core_test_kit/generated/v3.1.1/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/bodyheight_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/bodytemp_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/bodyweight_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/bp/bp_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/care_plan/care_plan_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/care_team/care_team_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/condition/condition_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/device/device_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/document_reference/document_reference_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/encounter/encounter_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/goal/goal_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/head_circumference_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/heartrate/heartrate_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/immunization/immunization_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/medication_request/medication_request_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/observation_lab/observation_lab_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/procedure/procedure_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/provenance/provenance_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/resprate/resprate_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v3.1.1/smokingstatus/smokingstatus_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/blood_pressure_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/bmi/bmi_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/body_height/body_height_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/body_temperature_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/body_weight/body_weight_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/care_plan/care_plan_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/care_team/care_team_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/condition/condition_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/device/device_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/document_reference/document_reference_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/goal/goal_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/head_circumference_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/head_circumference_percentile_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/heart_rate_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/immunization/immunization_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_request_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/observation_lab/observation_lab_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/procedure/procedure_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/provenance/provenance_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/respiratory_rate_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/smokingstatus_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/blood_pressure/blood_pressure_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/bmi/bmi_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/body_height/body_height_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/body_temperature/body_temperature_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/body_weight/body_weight_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/care_plan/care_plan_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/care_team/care_team_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/condition_encounter_diagnosis/condition_encounter_diagnosis_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/condition_problems_health_concerns/condition_problems_health_concerns_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/device/device_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/document_reference/document_reference_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/encounter/encounter_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/goal/goal_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/head_circumference/head_circumference_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/head_circumference_percentile/head_circumference_percentile_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/heart_rate/heart_rate_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/immunization/immunization_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/medication_request/medication_request_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/observation_clinical_test/observation_clinical_test_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/observation_imaging/observation_imaging_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/observation_lab/observation_lab_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/observation_sdoh_assessment_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/observation_sexual_orientation/observation_sexual_orientation_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/observation_social_history/observation_social_history_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/procedure/procedure_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/provenance/provenance_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/related_person/related_person_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/respiratory_rate/respiratory_rate_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/service_request/service_request_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/smokingstatus_reference_resolution_test.rb +7 -3
- data/lib/us_core_test_kit/reference_resolution_test.rb +27 -4
- data/lib/us_core_test_kit/version.rb +1 -1
- metadata +2 -2
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Condition resources
|
|
10
|
+
title 'MustSupport references within Condition resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Condition.encounter
|
|
17
21
|
* Condition.subject
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Condition resources
|
|
10
|
+
title 'MustSupport references within Condition resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Condition.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Device resources
|
|
10
|
+
title 'MustSupport references within Device resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Device.patient
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within DiagnosticReport resources
|
|
10
|
+
title 'MustSupport references within DiagnosticReport resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* DiagnosticReport.performer
|
|
17
21
|
* DiagnosticReport.result
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within DiagnosticReport resources
|
|
10
|
+
title 'MustSupport references within DiagnosticReport resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* DiagnosticReport.encounter
|
|
17
21
|
* DiagnosticReport.media.link
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within DocumentReference resources
|
|
10
|
+
title 'MustSupport references within DocumentReference resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* DocumentReference.author
|
|
17
21
|
* DocumentReference.context.encounter
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Encounter resources
|
|
10
|
+
title 'MustSupport references within Encounter resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Encounter.location.location
|
|
17
21
|
* Encounter.participant.individual
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Goal resources
|
|
10
|
+
title 'MustSupport references within Goal resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Goal.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
data/lib/us_core_test_kit/generated/v5.0.1/heart_rate/heart_rate_reference_resolution_test.rb
CHANGED
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
data/lib/us_core_test_kit/generated/v5.0.1/immunization/immunization_reference_resolution_test.rb
CHANGED
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Immunization resources
|
|
10
|
+
title 'MustSupport references within Immunization resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Immunization.patient
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within MedicationRequest resources
|
|
10
|
+
title 'MustSupport references within MedicationRequest resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* MedicationRequest.encounter
|
|
17
21
|
* MedicationRequest.medication[x]
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.derivedFrom
|
|
17
21
|
* Observation.hasMember
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.performer
|
|
17
21
|
* Observation.subject
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Procedure resources
|
|
10
|
+
title 'MustSupport references within Procedure resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Procedure.subject
|
|
17
21
|
)
|
data/lib/us_core_test_kit/generated/v5.0.1/provenance/provenance_reference_resolution_test.rb
CHANGED
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Provenance resources
|
|
10
|
+
title 'MustSupport references within Provenance resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Provenance.agent.onBehalfOf
|
|
17
21
|
* Provenance.agent.who
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within QuestionnaireResponse resources
|
|
10
|
+
title 'MustSupport references within QuestionnaireResponse resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* QuestionnaireResponse.author
|
|
17
21
|
* QuestionnaireResponse.subject
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within RelatedPerson resources
|
|
10
|
+
title 'MustSupport references within RelatedPerson resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* RelatedPerson.patient
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within ServiceRequest resources
|
|
10
|
+
title 'MustSupport references within ServiceRequest resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* ServiceRequest.requester
|
|
17
21
|
* ServiceRequest.subject
|
data/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/smokingstatus_reference_resolution_test.rb
CHANGED
|
@@ -7,11 +7,15 @@ module USCoreTestKit
|
|
|
7
7
|
include USCoreTestKit::ReferenceResolutionTest
|
|
8
8
|
include ResourceList
|
|
9
9
|
|
|
10
|
-
title 'MustSupport references within Observation resources
|
|
10
|
+
title 'MustSupport references within Observation resources are valid'
|
|
11
11
|
description %(
|
|
12
12
|
This test will attempt to read external references provided within elements
|
|
13
|
-
marked as 'MustSupport', if any are available.
|
|
14
|
-
|
|
13
|
+
marked as 'MustSupport', if any are available.
|
|
14
|
+
|
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
|
16
|
+
can be accessed by the test client, and conforms to corresponding US Core profile.
|
|
17
|
+
|
|
18
|
+
Elements which may provide external references include:
|
|
15
19
|
|
|
16
20
|
* Observation.subject
|
|
17
21
|
)
|
|
@@ -23,8 +23,31 @@ module USCoreTestKit
|
|
|
23
23
|
unresolved_reference_hash.map { |path, profiles| "#{path}#{"(#{profiles.join('|')})" unless profiles.first.empty?}" }
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def record_resolved_reference(reference)
|
|
27
|
-
resolved_references.
|
|
26
|
+
def record_resolved_reference(reference, target_profile)
|
|
27
|
+
saved_reference = resolved_references.find { |item| item[:reference] == reference.reference }
|
|
28
|
+
|
|
29
|
+
if saved_reference.present?
|
|
30
|
+
if target_profile.present? && !saved_reference[:profiles].include?(target_profile)
|
|
31
|
+
saved_reference[:profiles] << target_profile
|
|
32
|
+
end
|
|
33
|
+
else
|
|
34
|
+
saved_reference = {
|
|
35
|
+
reference: reference.reference,
|
|
36
|
+
profiles: []
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
saved_reference[:profiles] << target_profile if target_profile.present?
|
|
40
|
+
resolved_references.add(saved_reference)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def is_reference_resolved?(reference, target_profile)
|
|
45
|
+
resolved_references.any? do |item|
|
|
46
|
+
item[:reference] == reference.reference &&
|
|
47
|
+
(
|
|
48
|
+
target_profile.blank? || item[:profiles].include?(target_profile)
|
|
49
|
+
)
|
|
50
|
+
end
|
|
28
51
|
end
|
|
29
52
|
|
|
30
53
|
def resolved_references
|
|
@@ -87,7 +110,7 @@ module USCoreTestKit
|
|
|
87
110
|
end
|
|
88
111
|
|
|
89
112
|
def validate_reference_resolution(resource, reference, target_profile)
|
|
90
|
-
return true if
|
|
113
|
+
return true if is_reference_resolved?(reference, target_profile)
|
|
91
114
|
|
|
92
115
|
if reference.contained?
|
|
93
116
|
# if reference_id is blank it is referring to itself, so we know it exists
|
|
@@ -129,7 +152,7 @@ module USCoreTestKit
|
|
|
129
152
|
|
|
130
153
|
return false unless resource_is_valid_with_target_profile?(resolved_resource, target_profile)
|
|
131
154
|
|
|
132
|
-
record_resolved_reference(reference)
|
|
155
|
+
record_resolved_reference(reference, target_profile)
|
|
133
156
|
true
|
|
134
157
|
end
|
|
135
158
|
|