us_core_test_kit 0.2.1 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/us_core_test_kit/custom_groups/clinical_note_attachment_test.rb +2 -2
- data/lib/us_core_test_kit/custom_groups/clinical_note_type_test.rb +11 -6
- data/lib/us_core_test_kit/fhir_resource_navigation.rb +11 -3
- data/lib/us_core_test_kit/generated/v3.1.1/allergy_intolerance/allergy_intolerance_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/bodyheight_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/bodytemp_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/bodyweight_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/bp/bp_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/care_plan/care_plan_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/care_team/care_team_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/condition/condition_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/device/device_must_support_test.rb +1 -2
- data/lib/us_core_test_kit/generated/v3.1.1/device/device_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_note/diagnostic_report_note_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/document_reference/document_reference_must_support_test.rb +1 -2
- data/lib/us_core_test_kit/generated/v3.1.1/document_reference/document_reference_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/encounter/encounter_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/goal/goal_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/head_circumference_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/heartrate/heartrate_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/immunization/immunization_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/medication_request/medication_request_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/medication_request/medication_validation_test.rb +4 -2
- data/lib/us_core_test_kit/generated/v3.1.1/observation_lab/observation_lab_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/organization/organization_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/patient/patient_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/pediatric_bmi_for_age_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/pediatric_weight_for_height_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/practitioner/practitioner_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/procedure/procedure_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/provenance/provenance_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/pulse_oximetry_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/resprate/resprate_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/smokingstatus/smokingstatus_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +2 -2
- data/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/allergy_intolerance_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/blood_pressure_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/bmi/bmi_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/body_height/body_height_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/body_temperature_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/body_weight/body_weight_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/care_plan/care_plan_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/care_team/care_team_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/condition/condition_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/device/device_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/diagnostic_report_note_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/document_reference/document_reference_must_support_test.rb +1 -2
- data/lib/us_core_test_kit/generated/v4.0.0/document_reference/document_reference_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_must_support_test.rb +2 -4
- data/lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/goal/goal_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/head_circumference_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/head_circumference_percentile_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/heart_rate_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/immunization/immunization_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_request_must_support_test.rb +1 -2
- data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_request_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_validation_test.rb +4 -2
- data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +20 -2
- data/lib/us_core_test_kit/generated/v4.0.0/observation_lab/observation_lab_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/organization/organization_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +20 -1
- data/lib/us_core_test_kit/generated/v4.0.0/patient/patient_must_support_test.rb +9 -5
- data/lib/us_core_test_kit/generated/v4.0.0/patient/patient_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/pediatric_weight_for_height_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/practitioner/practitioner_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/procedure/procedure_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/provenance/metadata.yml +0 -1
- data/lib/us_core_test_kit/generated/v4.0.0/provenance/provenance_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/pulse_oximetry_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/respiratory_rate_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/smokingstatus_validation_test.rb +5 -2
- data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +2 -2
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +35 -22
- data/lib/us_core_test_kit/generator/must_support_test_generator.rb +26 -3
- data/lib/us_core_test_kit/generator/validation_test_generator.rb +7 -0
- data/lib/us_core_test_kit/must_support_test.rb +19 -3
- data/lib/us_core_test_kit/search_test.rb +104 -46
- data/lib/us_core_test_kit/validation_test.rb +9 -3
- data/lib/us_core_test_kit/version.rb +3 -1
- metadata +2 -2
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v311_pediatric_bmi_for_age_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Pediatric BMI for Age Observation Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Pediatric BMI for Age Observation Profile](http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v311_pediatric_weight_for_height_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Pediatric Weight for Height Observation Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Pediatric Weight for Height Observation Profile](http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v311_practitioner_validation_test
|
9
9
|
title 'Practitioner resources returned during previous tests conform to the US Core Practitioner Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Practitioner Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v311_procedure_validation_test
|
9
9
|
title 'Procedure resources returned during previous tests conform to the US Core Procedure Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Procedure Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v311_provenance_validation_test
|
9
9
|
title 'Provenance resources returned during previous tests conform to the US Core Provenance Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Provenance Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v311_pulse_oximetry_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Pulse Oximetry Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Pulse Oximetry Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v311_resprate_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the Observation Respiratory Rate Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [Observation Respiratory Rate Profile](http://hl7.org/fhir/StructureDefinition/resprate).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/StructureDefinition/resprate',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v311_smokingstatus_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Smoking Status Observation Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Smoking Status Observation Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -42,8 +42,8 @@ module USCoreTestKit
|
|
42
42
|
VALIDATION_MESSAGE_FILTERS = [
|
43
43
|
%r{Sub-extension url 'introspect' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris$},
|
44
44
|
%r{Sub-extension url 'revoke' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris$},
|
45
|
-
|
46
|
-
|
45
|
+
/Observation\.effective\.ofType\(Period\): vs-1:/, # Invalid invariant in FHIR v4.0.1
|
46
|
+
/Observation\.effective\.ofType\(Period\): us-core-1:/ # Invalid invariant in US Core v3.1.1
|
47
47
|
].freeze
|
48
48
|
|
49
49
|
def self.metadata
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_allergy_intolerance_validation_test
|
9
9
|
title 'AllergyIntolerance resources returned during previous tests conform to the US Core AllergyIntolerance Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core AllergyIntolerance Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_blood_pressure_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Blood Pressure Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Blood Pressure Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-blood-pressure).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-blood-pressure',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_bmi_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core BMI Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core BMI Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-bmi).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-bmi',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_body_height_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Body Height Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Body Height Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-height).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-height',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/body_temperature_validation_test.rb
CHANGED
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_body_temperature_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Body Temperature Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Body Temperature Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-temperature).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-temperature',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_body_weight_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Body Weight Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Body Weight Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-weight).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-weight',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_care_plan_validation_test
|
9
9
|
title 'CarePlan resources returned during previous tests conform to the US Core CarePlan Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core CarePlan Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_care_team_validation_test
|
9
9
|
title 'CareTeam resources returned during previous tests conform to the US Core CareTeam Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core CareTeam Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_condition_validation_test
|
9
9
|
title 'Condition resources returned during previous tests conform to the US Core Condition Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Condition Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_device_validation_test
|
9
9
|
title 'Device resources returned during previous tests conform to the US Core Implantable Device Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Implantable Device Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_diagnostic_report_lab_validation_test
|
9
9
|
title 'DiagnosticReport resources returned during previous tests conform to the US Core DiagnosticReport Profile for Laboratory Results Reporting'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core DiagnosticReport Profile for Laboratory Results Reporting](http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_diagnostic_report_note_validation_test
|
9
9
|
title 'DiagnosticReport resources returned during previous tests conform to the US Core DiagnosticReport Profile for Report and Note exchange'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core DiagnosticReport Profile for Report and Note exchange](http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -17,8 +17,7 @@ module USCoreTestKit
|
|
17
17
|
* DocumentReference.content
|
18
18
|
* DocumentReference.content.attachment
|
19
19
|
* DocumentReference.content.attachment.contentType
|
20
|
-
* DocumentReference.content.attachment.data
|
21
|
-
* DocumentReference.content.attachment.url
|
20
|
+
* DocumentReference.content.attachment.data or DocumentReference.content.attachment.url
|
22
21
|
* DocumentReference.content.format
|
23
22
|
* DocumentReference.context
|
24
23
|
* DocumentReference.context.encounter
|
data/lib/us_core_test_kit/generated/v4.0.0/document_reference/document_reference_validation_test.rb
CHANGED
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_document_reference_validation_test
|
9
9
|
title 'DocumentReference resources returned during previous tests conform to the US Core DocumentReference Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core DocumentReference Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -19,15 +19,13 @@ module USCoreTestKit
|
|
19
19
|
* Encounter.identifier.system
|
20
20
|
* Encounter.identifier.value
|
21
21
|
* Encounter.location
|
22
|
-
* Encounter.location.location
|
22
|
+
* Encounter.location.location or Encounter.serviceProvider
|
23
23
|
* Encounter.participant
|
24
24
|
* Encounter.participant.individual
|
25
25
|
* Encounter.participant.period
|
26
26
|
* Encounter.participant.type
|
27
27
|
* Encounter.period
|
28
|
-
* Encounter.reasonCode
|
29
|
-
* Encounter.reasonReference
|
30
|
-
* Encounter.serviceProvider
|
28
|
+
* Encounter.reasonCode or Encounter.reasonReference
|
31
29
|
* Encounter.status
|
32
30
|
* Encounter.subject
|
33
31
|
* Encounter.type
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_encounter_validation_test
|
9
9
|
title 'Encounter resources returned during previous tests conform to the US Core Encounter Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Encounter Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_goal_validation_test
|
9
9
|
title 'Goal resources returned during previous tests conform to the US Core Goal Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Goal Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/head_circumference_validation_test.rb
CHANGED
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_head_circumference_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Head Circumference Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Head Circumference Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-head-circumference).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-head-circumference',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -8,8 +8,9 @@ module USCoreTestKit
|
|
8
8
|
id :us_core_v400_head_circumference_percentile_validation_test
|
9
9
|
title 'Observation resources returned during previous tests conform to the US Core Pediatric Head Occipital-frontal Circumference Percentile Profile'
|
10
10
|
description %(
|
11
|
-
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
12
|
the [US Core Pediatric Head Occipital-frontal Circumference Percentile Profile](http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
13
14
|
|
14
15
|
It verifies the presence of mandatory elements and that elements with
|
15
16
|
required bindings contain appropriate values. CodeableConcept element
|
@@ -29,7 +30,9 @@ fail if their code/system are not found in the valueset.
|
|
29
30
|
end
|
30
31
|
|
31
32
|
run do
|
32
|
-
perform_validation_test(scratch_resources[:all] || [],
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile',
|
35
|
+
skip_if_empty: true)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|