From 755c856869c784ff7d51767973498bdfdc0aedb9 Mon Sep 17 00:00:00 2001 From: Pavel R Date: Tue, 26 Mar 2024 13:20:50 +0100 Subject: [PATCH] Add may search params and combo search params Ref: https://github.com/hl7au/au-fhir-core-inferno/issues/25 --- ...intolerance_clinical_status_search_test.rb | 44 + .../allergy_intolerance/metadata.yml | 33 +- .../allergy_intolerance_group.rb | 2 + .../bloodpressure_category_search_test.rb | 45 + .../bloodpressure_code_search_test.rb | 45 + .../bloodpressure_date_search_test.rb | 44 + .../bloodpressure_status_search_test.rb | 43 + .../v0.3.0-ballot/bloodpressure/metadata.yml | 79 +- .../v0.3.0-ballot/bloodpressure_group.rb | 8 + .../bodyheight_category_search_test.rb | 45 + .../bodyheight/bodyheight_code_search_test.rb | 45 + .../bodyheight/bodyheight_date_search_test.rb | 44 + .../bodyheight_status_search_test.rb | 43 + .../v0.3.0-ballot/bodyheight/metadata.yml | 79 +- .../v0.3.0-ballot/bodyheight_group.rb | 8 + .../bodytemp/bodytemp_category_search_test.rb | 45 + .../bodytemp/bodytemp_code_search_test.rb | 45 + .../bodytemp/bodytemp_date_search_test.rb | 44 + .../bodytemp/bodytemp_status_search_test.rb | 43 + .../v0.3.0-ballot/bodytemp/metadata.yml | 79 +- .../generated/v0.3.0-ballot/bodytemp_group.rb | 8 + .../bodyweight_category_search_test.rb | 45 + .../bodyweight/bodyweight_code_search_test.rb | 45 + .../bodyweight/bodyweight_date_search_test.rb | 44 + .../bodyweight_status_search_test.rb | 43 + .../v0.3.0-ballot/bodyweight/metadata.yml | 79 +- .../v0.3.0-ballot/bodyweight_group.rb | 8 + .../condition_category_search_test.rb | 45 + .../condition_clinical_status_search_test.rb | 44 + .../condition/condition_code_search_test.rb | 45 + .../condition_onset_date_search_test.rb | 44 + .../v0.3.0-ballot/condition/metadata.yml | 55 +- .../v0.3.0-ballot/condition_group.rb | 8 + .../diagnosticresult_category_search_test.rb | 45 + .../diagnosticresult_code_search_test.rb | 45 + .../diagnosticresult_date_search_test.rb | 44 + .../diagnosticresult_status_search_test.rb | 43 + .../diagnosticresult/metadata.yml | 73 +- .../v0.3.0-ballot/diagnosticresult_group.rb | 8 + ...gnosticresult_path_category_search_test.rb | 45 + .../diagnosticresult_path_code_search_test.rb | 45 + .../diagnosticresult_path_date_search_test.rb | 44 + ...iagnosticresult_path_status_search_test.rb | 43 + .../diagnosticresult_path/metadata.yml | 75 +- .../diagnosticresult_path_group.rb | 8 + .../encounter/encounter_class_search_test.rb | 45 + .../encounter/encounter_date_search_test.rb | 44 + ...unter_discharge_disposition_search_test.rb | 45 + .../encounter_identifier_search_test.rb | 45 + .../encounter_location_search_test.rb | 44 + .../encounter/encounter_status_search_test.rb | 43 + .../encounter/encounter_type_search_test.rb | 45 + .../v0.3.0-ballot/encounter/metadata.yml | 92 +- .../v0.3.0-ballot/encounter_group.rb | 14 + .../heartrate_category_search_test.rb | 45 + .../heartrate/heartrate_code_search_test.rb | 45 + .../heartrate/heartrate_date_search_test.rb | 44 + .../heartrate/heartrate_status_search_test.rb | 43 + .../v0.3.0-ballot/heartrate/metadata.yml | 79 +- .../v0.3.0-ballot/heartrate_group.rb | 8 + .../immunization_date_search_test.rb | 44 + ...zation_patient_vaccine_code_search_test.rb | 50 + .../immunization_status_search_test.rb | 43 + .../immunization_vaccine_code_search_test.rb | 45 + .../v0.3.0-ballot/immunization/metadata.yml | 88 +- .../v0.3.0-ballot/immunization_group.rb | 8 + ...dication_request_authoredon_search_test.rb | 49 + ...medication_request_category_search_test.rb | 50 + .../medication_request_intent_search_test.rb | 49 + .../medication_request_status_search_test.rb | 48 + .../medication_request/metadata.yml | 80 +- .../v0.3.0-ballot/medication_request_group.rb | 8 + ...ication_statement_effective_search_test.rb | 44 + ...medication_statement_status_search_test.rb | 43 + .../medication_statement/metadata.yml | 63 +- .../medication_statement_group.rb | 4 + .../generated/v0.3.0-ballot/metadata.yml | 1257 ++++++++++----- .../v0.3.0-ballot/patient/metadata.yml | 96 +- .../patient_birthdate_family_search_test.rb | 3 +- .../patient_birthdate_name_search_test.rb | 3 +- .../patient/patient_birthdate_search_test.rb | 44 + .../patient_family_gender_search_test.rb | 3 +- .../patient/patient_family_search_test.rb | 3 +- .../patient_gender_name_search_test.rb | 3 +- .../patient/patient_gender_search_test.rb | 44 + .../patient/patient_id_search_test.rb | 1 + .../patient/patient_identifier_search_test.rb | 1 + .../patient_indigenous_status_search_test.rb | 43 + .../patient/patient_name_search_test.rb | 3 +- ...ent_patient_gender_identity_search_test.rb | 44 + .../generated/v0.3.0-ballot/patient_group.rb | 8 + .../v0.3.0-ballot/procedure/metadata.yml | 56 +- .../procedure/procedure_code_search_test.rb | 45 + .../procedure/procedure_date_search_test.rb | 44 + .../procedure/procedure_status_search_test.rb | 43 + .../v0.3.0-ballot/procedure_group.rb | 6 + .../v0.3.0-ballot/resprate/metadata.yml | 79 +- .../resprate/resprate_category_search_test.rb | 45 + .../resprate/resprate_code_search_test.rb | 45 + .../resprate/resprate_date_search_test.rb | 44 + .../resprate/resprate_status_search_test.rb | 43 + .../generated/v0.3.0-ballot/resprate_group.rb | 8 + .../v0.3.0-ballot/smokingstatus/metadata.yml | 77 +- .../smokingstatus_category_search_test.rb | 45 + .../smokingstatus_code_search_test.rb | 45 + .../smokingstatus_date_search_test.rb | 44 + .../smokingstatus_status_search_test.rb | 43 + .../v0.3.0-ballot/smokingstatus_group.rb | 8 + .../generated/v0.3.0-ballot/summary.md | 1425 +++++++++++++++-- .../v0.3.0-ballot/waistcircum/metadata.yml | 79 +- .../waistcircum_category_search_test.rb | 45 + .../waistcircum_code_search_test.rb | 45 + .../waistcircum_date_search_test.rb | 44 + .../waistcircum_status_search_test.rb | 43 + .../v0.3.0-ballot/waistcircum_group.rb | 8 + .../generator/search_metadata_extractor.rb | 4 +- lib/au_core_test_kit/igs/search-params.json | 162 ++ 117 files changed, 6486 insertions(+), 936 deletions(-) create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance/allergy_intolerance_clinical_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_clinical_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_onset_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_class_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_discharge_disposition_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_identifier_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_location_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_type_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_patient_vaccine_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_vaccine_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_authoredon_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_intent_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/medication_statement_effective_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/medication_statement_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_gender_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_indigenous_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_patient_gender_identity_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_status_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_category_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_code_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_date_search_test.rb create mode 100644 lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_status_search_test.rb diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance/allergy_intolerance_clinical_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance/allergy_intolerance_clinical_status_search_test.rb new file mode 100644 index 00000000..96f55e8c --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance/allergy_intolerance_clinical_status_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class AllergyIntoleranceClinicalStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for AllergyIntolerance search by clinical-status' + description %( +A server MAY support searching by +clinical-status on the AllergyIntolerance resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_allergy_intolerance_clinical_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'AllergyIntolerance', + search_param_names: ['clinical-status'], + token_search_params: ['clinical-status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:allergy_intolerance_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance/metadata.yml index 4be3bd1c..23873200 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance/metadata.yml @@ -34,6 +34,11 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - clinical-status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHOULD :names: - patient @@ -41,19 +46,6 @@ :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true :search_definitions: - :patient: - :paths: - - patient - :full_paths: - - AllergyIntolerance.patient - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :clinical-status: :paths: - clinicalStatus @@ -67,6 +59,19 @@ :type: CodeableConcept :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - patient + :full_paths: + - AllergyIntolerance.patient + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -152,6 +157,8 @@ :tests: - :id: au_core_v030_ballot_allergy_intolerance_patient_search_test :file_name: allergy_intolerance_patient_search_test.rb +- :id: au_core_v030_ballot_allergy_intolerance_clinical_status_search_test + :file_name: allergy_intolerance_clinical_status_search_test.rb - :id: au_core_v030_ballot_allergy_intolerance_patient_clinical_status_search_test :file_name: allergy_intolerance_patient_clinical_status_search_test.rb - :id: au_core_v030_ballot_allergy_intolerance_read_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance_group.rb index 293fad6b..7b41fbd0 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/allergy_intolerance_group.rb @@ -1,4 +1,5 @@ require_relative 'allergy_intolerance/allergy_intolerance_patient_search_test' +require_relative 'allergy_intolerance/allergy_intolerance_clinical_status_search_test' require_relative 'allergy_intolerance/allergy_intolerance_patient_clinical_status_search_test' require_relative 'allergy_intolerance/allergy_intolerance_read_test' require_relative 'allergy_intolerance/allergy_intolerance_provenance_revinclude_search_test' @@ -77,6 +78,7 @@ def self.metadata end test from: :au_core_v030_ballot_allergy_intolerance_patient_search_test + test from: :au_core_v030_ballot_allergy_intolerance_clinical_status_search_test test from: :au_core_v030_ballot_allergy_intolerance_patient_clinical_status_search_test test from: :au_core_v030_ballot_allergy_intolerance_read_test test from: :au_core_v030_ballot_allergy_intolerance_provenance_revinclude_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_category_search_test.rb new file mode 100644 index 00000000..56c7cc2b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BloodpressureCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bloodpressure_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bloodpressure_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_code_search_test.rb new file mode 100644 index 00000000..c28c8e76 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BloodpressureCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bloodpressure_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bloodpressure_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_date_search_test.rb new file mode 100644 index 00000000..5fe94d22 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BloodpressureDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bloodpressure_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bloodpressure_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_status_search_test.rb new file mode 100644 index 00000000..8b0ca23f --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/bloodpressure_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BloodpressureStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bloodpressure_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bloodpressure_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/metadata.yml index 55c22b1d..99c3dd4c 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure/metadata.yml @@ -35,6 +35,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -70,19 +91,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -94,6 +102,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 85354-9 + - '75367002' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -119,18 +139,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 85354-9 - - '75367002' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -149,6 +157,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -318,6 +339,14 @@ :tests: - :id: au_core_v030_ballot_bloodpressure_patient_code_search_test :file_name: bloodpressure_patient_code_search_test.rb +- :id: au_core_v030_ballot_bloodpressure_category_search_test + :file_name: bloodpressure_category_search_test.rb +- :id: au_core_v030_ballot_bloodpressure_code_search_test + :file_name: bloodpressure_code_search_test.rb +- :id: au_core_v030_ballot_bloodpressure_date_search_test + :file_name: bloodpressure_date_search_test.rb +- :id: au_core_v030_ballot_bloodpressure_status_search_test + :file_name: bloodpressure_status_search_test.rb - :id: au_core_v030_ballot_bloodpressure_patient_search_test :file_name: bloodpressure_patient_search_test.rb - :id: au_core_v030_ballot_bloodpressure_patient_category_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure_group.rb index 7bcf7c1e..8dc421bb 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bloodpressure_group.rb @@ -1,4 +1,8 @@ require_relative 'bloodpressure/bloodpressure_patient_code_search_test' +require_relative 'bloodpressure/bloodpressure_category_search_test' +require_relative 'bloodpressure/bloodpressure_code_search_test' +require_relative 'bloodpressure/bloodpressure_date_search_test' +require_relative 'bloodpressure/bloodpressure_status_search_test' require_relative 'bloodpressure/bloodpressure_patient_search_test' require_relative 'bloodpressure/bloodpressure_patient_category_search_test' require_relative 'bloodpressure/bloodpressure_patient_category_date_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_bloodpressure_patient_code_search_test + test from: :au_core_v030_ballot_bloodpressure_category_search_test + test from: :au_core_v030_ballot_bloodpressure_code_search_test + test from: :au_core_v030_ballot_bloodpressure_date_search_test + test from: :au_core_v030_ballot_bloodpressure_status_search_test test from: :au_core_v030_ballot_bloodpressure_patient_search_test test from: :au_core_v030_ballot_bloodpressure_patient_category_search_test test from: :au_core_v030_ballot_bloodpressure_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_category_search_test.rb new file mode 100644 index 00000000..e7ddd029 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodyheightCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodyheight_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodyheight_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_code_search_test.rb new file mode 100644 index 00000000..debe3dbc --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodyheightCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodyheight_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodyheight_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_date_search_test.rb new file mode 100644 index 00000000..cce76e32 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodyheightDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodyheight_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodyheight_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_status_search_test.rb new file mode 100644 index 00000000..2d892037 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/bodyheight_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodyheightStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodyheight_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodyheight_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/metadata.yml index 69a39751..c2ec476f 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight/metadata.yml @@ -35,6 +35,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -70,19 +91,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -94,6 +102,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 8302-2 + - '50373000' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -119,18 +139,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 8302-2 - - '50373000' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -149,6 +157,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -288,6 +309,14 @@ :tests: - :id: au_core_v030_ballot_bodyheight_patient_code_search_test :file_name: bodyheight_patient_code_search_test.rb +- :id: au_core_v030_ballot_bodyheight_category_search_test + :file_name: bodyheight_category_search_test.rb +- :id: au_core_v030_ballot_bodyheight_code_search_test + :file_name: bodyheight_code_search_test.rb +- :id: au_core_v030_ballot_bodyheight_date_search_test + :file_name: bodyheight_date_search_test.rb +- :id: au_core_v030_ballot_bodyheight_status_search_test + :file_name: bodyheight_status_search_test.rb - :id: au_core_v030_ballot_bodyheight_patient_search_test :file_name: bodyheight_patient_search_test.rb - :id: au_core_v030_ballot_bodyheight_patient_category_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight_group.rb index f308f45a..7b472997 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyheight_group.rb @@ -1,4 +1,8 @@ require_relative 'bodyheight/bodyheight_patient_code_search_test' +require_relative 'bodyheight/bodyheight_category_search_test' +require_relative 'bodyheight/bodyheight_code_search_test' +require_relative 'bodyheight/bodyheight_date_search_test' +require_relative 'bodyheight/bodyheight_status_search_test' require_relative 'bodyheight/bodyheight_patient_search_test' require_relative 'bodyheight/bodyheight_patient_category_search_test' require_relative 'bodyheight/bodyheight_patient_category_date_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_bodyheight_patient_code_search_test + test from: :au_core_v030_ballot_bodyheight_category_search_test + test from: :au_core_v030_ballot_bodyheight_code_search_test + test from: :au_core_v030_ballot_bodyheight_date_search_test + test from: :au_core_v030_ballot_bodyheight_status_search_test test from: :au_core_v030_ballot_bodyheight_patient_search_test test from: :au_core_v030_ballot_bodyheight_patient_category_search_test test from: :au_core_v030_ballot_bodyheight_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_category_search_test.rb new file mode 100644 index 00000000..b68c2d9f --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodytempCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodytemp_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodytemp_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_code_search_test.rb new file mode 100644 index 00000000..580997f0 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodytempCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodytemp_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodytemp_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_date_search_test.rb new file mode 100644 index 00000000..cd95cfbd --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodytempDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodytemp_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodytemp_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_status_search_test.rb new file mode 100644 index 00000000..a637c9d6 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/bodytemp_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodytempStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodytemp_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodytemp_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/metadata.yml index e1bb1399..0168d779 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp/metadata.yml @@ -35,6 +35,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -70,19 +91,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -94,6 +102,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 8310-5 + - '386725007' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -119,18 +139,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 8310-5 - - '386725007' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -149,6 +157,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -288,6 +309,14 @@ :tests: - :id: au_core_v030_ballot_bodytemp_patient_code_search_test :file_name: bodytemp_patient_code_search_test.rb +- :id: au_core_v030_ballot_bodytemp_category_search_test + :file_name: bodytemp_category_search_test.rb +- :id: au_core_v030_ballot_bodytemp_code_search_test + :file_name: bodytemp_code_search_test.rb +- :id: au_core_v030_ballot_bodytemp_date_search_test + :file_name: bodytemp_date_search_test.rb +- :id: au_core_v030_ballot_bodytemp_status_search_test + :file_name: bodytemp_status_search_test.rb - :id: au_core_v030_ballot_bodytemp_patient_search_test :file_name: bodytemp_patient_search_test.rb - :id: au_core_v030_ballot_bodytemp_patient_category_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp_group.rb index 135217d4..de9d216a 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodytemp_group.rb @@ -1,4 +1,8 @@ require_relative 'bodytemp/bodytemp_patient_code_search_test' +require_relative 'bodytemp/bodytemp_category_search_test' +require_relative 'bodytemp/bodytemp_code_search_test' +require_relative 'bodytemp/bodytemp_date_search_test' +require_relative 'bodytemp/bodytemp_status_search_test' require_relative 'bodytemp/bodytemp_patient_search_test' require_relative 'bodytemp/bodytemp_patient_category_search_test' require_relative 'bodytemp/bodytemp_patient_category_date_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_bodytemp_patient_code_search_test + test from: :au_core_v030_ballot_bodytemp_category_search_test + test from: :au_core_v030_ballot_bodytemp_code_search_test + test from: :au_core_v030_ballot_bodytemp_date_search_test + test from: :au_core_v030_ballot_bodytemp_status_search_test test from: :au_core_v030_ballot_bodytemp_patient_search_test test from: :au_core_v030_ballot_bodytemp_patient_category_search_test test from: :au_core_v030_ballot_bodytemp_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_category_search_test.rb new file mode 100644 index 00000000..79b8c1bd --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodyweightCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodyweight_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodyweight_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_code_search_test.rb new file mode 100644 index 00000000..d012900b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodyweightCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodyweight_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodyweight_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_date_search_test.rb new file mode 100644 index 00000000..3161c1cc --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodyweightDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodyweight_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodyweight_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_status_search_test.rb new file mode 100644 index 00000000..4f4554b3 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/bodyweight_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class BodyweightStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_bodyweight_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:bodyweight_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/metadata.yml index 502b552f..27b2ce31 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight/metadata.yml @@ -35,6 +35,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -70,19 +91,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -94,6 +102,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 29463-7 + - '27113001' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -119,18 +139,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 29463-7 - - '27113001' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -149,6 +157,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -288,6 +309,14 @@ :tests: - :id: au_core_v030_ballot_bodyweight_patient_code_search_test :file_name: bodyweight_patient_code_search_test.rb +- :id: au_core_v030_ballot_bodyweight_category_search_test + :file_name: bodyweight_category_search_test.rb +- :id: au_core_v030_ballot_bodyweight_code_search_test + :file_name: bodyweight_code_search_test.rb +- :id: au_core_v030_ballot_bodyweight_date_search_test + :file_name: bodyweight_date_search_test.rb +- :id: au_core_v030_ballot_bodyweight_status_search_test + :file_name: bodyweight_status_search_test.rb - :id: au_core_v030_ballot_bodyweight_patient_search_test :file_name: bodyweight_patient_search_test.rb - :id: au_core_v030_ballot_bodyweight_patient_category_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight_group.rb index 114fa828..f8c0017b 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/bodyweight_group.rb @@ -1,4 +1,8 @@ require_relative 'bodyweight/bodyweight_patient_code_search_test' +require_relative 'bodyweight/bodyweight_category_search_test' +require_relative 'bodyweight/bodyweight_code_search_test' +require_relative 'bodyweight/bodyweight_date_search_test' +require_relative 'bodyweight/bodyweight_status_search_test' require_relative 'bodyweight/bodyweight_patient_search_test' require_relative 'bodyweight/bodyweight_patient_category_search_test' require_relative 'bodyweight/bodyweight_patient_category_date_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_bodyweight_patient_code_search_test + test from: :au_core_v030_ballot_bodyweight_category_search_test + test from: :au_core_v030_ballot_bodyweight_code_search_test + test from: :au_core_v030_ballot_bodyweight_date_search_test + test from: :au_core_v030_ballot_bodyweight_status_search_test test from: :au_core_v030_ballot_bodyweight_patient_search_test test from: :au_core_v030_ballot_bodyweight_patient_category_search_test test from: :au_core_v030_ballot_bodyweight_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_category_search_test.rb new file mode 100644 index 00000000..80a7bdb7 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ConditionCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Condition search by category' + description %( +A server MAY support searching by +category on the Condition resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_condition_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Condition', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:condition_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_clinical_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_clinical_status_search_test.rb new file mode 100644 index 00000000..11d826de --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_clinical_status_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ConditionClinicalStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Condition search by clinical-status' + description %( +A server MAY support searching by +clinical-status on the Condition resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_condition_clinical_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Condition', + search_param_names: ['clinical-status'], + token_search_params: ['clinical-status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:condition_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_code_search_test.rb new file mode 100644 index 00000000..55fd4f12 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ConditionCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Condition search by code' + description %( +A server MAY support searching by +code on the Condition resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_condition_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Condition', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:condition_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_onset_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_onset_date_search_test.rb new file mode 100644 index 00000000..55d5c76a --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/condition_onset_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ConditionOnsetDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Condition search by onset-date' + description %( +A server MAY support searching by +onset-date on the Condition resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_condition_onset_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Condition', + search_param_names: ['onset-date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:condition_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/metadata.yml index ea96b467..89b6820b 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition/metadata.yml @@ -34,6 +34,27 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - clinical-status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - onset-date + :expectation: MAY + :names_not_must_support_or_mandatory: + - onset-date + :must_support_or_mandatory: false - :expectation: SHALL :names: - patient @@ -67,19 +88,6 @@ - onset-date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Condition.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -137,6 +145,19 @@ :type: date :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Condition.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -214,6 +235,14 @@ :tests: - :id: au_core_v030_ballot_condition_patient_search_test :file_name: condition_patient_search_test.rb +- :id: au_core_v030_ballot_condition_category_search_test + :file_name: condition_category_search_test.rb +- :id: au_core_v030_ballot_condition_clinical_status_search_test + :file_name: condition_clinical_status_search_test.rb +- :id: au_core_v030_ballot_condition_code_search_test + :file_name: condition_code_search_test.rb +- :id: au_core_v030_ballot_condition_onset_date_search_test + :file_name: condition_onset_date_search_test.rb - :id: au_core_v030_ballot_condition_patient_category_search_test :file_name: condition_patient_category_search_test.rb - :id: au_core_v030_ballot_condition_patient_clinical_status_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/condition_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition_group.rb index c2a878db..c09f95f5 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/condition_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/condition_group.rb @@ -1,4 +1,8 @@ require_relative 'condition/condition_patient_search_test' +require_relative 'condition/condition_category_search_test' +require_relative 'condition/condition_clinical_status_search_test' +require_relative 'condition/condition_code_search_test' +require_relative 'condition/condition_onset_date_search_test' require_relative 'condition/condition_patient_category_search_test' require_relative 'condition/condition_patient_clinical_status_search_test' require_relative 'condition/condition_patient_category_clinical_status_search_test' @@ -83,6 +87,10 @@ def self.metadata end test from: :au_core_v030_ballot_condition_patient_search_test + test from: :au_core_v030_ballot_condition_category_search_test + test from: :au_core_v030_ballot_condition_clinical_status_search_test + test from: :au_core_v030_ballot_condition_code_search_test + test from: :au_core_v030_ballot_condition_onset_date_search_test test from: :au_core_v030_ballot_condition_patient_category_search_test test from: :au_core_v030_ballot_condition_patient_clinical_status_search_test test from: :au_core_v030_ballot_condition_patient_category_clinical_status_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_category_search_test.rb new file mode 100644 index 00000000..6bbcf280 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class DiagnosticresultCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_diagnosticresult_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:diagnosticresult_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_code_search_test.rb new file mode 100644 index 00000000..f4df36fc --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class DiagnosticresultCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_diagnosticresult_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:diagnosticresult_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_date_search_test.rb new file mode 100644 index 00000000..7f6e33c2 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class DiagnosticresultDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_diagnosticresult_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:diagnosticresult_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_status_search_test.rb new file mode 100644 index 00000000..3b6cf50b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/diagnosticresult_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class DiagnosticresultStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_diagnosticresult_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:diagnosticresult_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/metadata.yml index 5bfb90fb..caeabf60 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult/metadata.yml @@ -34,6 +34,27 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - patient @@ -70,28 +91,25 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: + :category: :paths: - - subject + - category :full_paths: - - Observation.subject + - Observation.category :comparators: {} :values: [] - :type: Reference - :contains_multiple: false + :type: CodeableConcept + :contains_multiple: true :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD - :category: + :code: :paths: - - category + - code :full_paths: - - Observation.category + - Observation.code :comparators: {} :values: [] :type: CodeableConcept - :contains_multiple: true + :contains_multiple: false :multiple_or: MAY :date: :paths: @@ -118,16 +136,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: [] - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -146,6 +154,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -250,6 +271,14 @@ :tests: - :id: au_core_v030_ballot_diagnosticresult_patient_search_test :file_name: diagnosticresult_patient_search_test.rb +- :id: au_core_v030_ballot_diagnosticresult_category_search_test + :file_name: diagnosticresult_category_search_test.rb +- :id: au_core_v030_ballot_diagnosticresult_code_search_test + :file_name: diagnosticresult_code_search_test.rb +- :id: au_core_v030_ballot_diagnosticresult_date_search_test + :file_name: diagnosticresult_date_search_test.rb +- :id: au_core_v030_ballot_diagnosticresult_status_search_test + :file_name: diagnosticresult_status_search_test.rb - :id: au_core_v030_ballot_diagnosticresult_patient_category_search_test :file_name: diagnosticresult_patient_category_search_test.rb - :id: au_core_v030_ballot_diagnosticresult_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_group.rb index 8092cbd5..50eb40a9 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_group.rb @@ -1,4 +1,8 @@ require_relative 'diagnosticresult/diagnosticresult_patient_search_test' +require_relative 'diagnosticresult/diagnosticresult_category_search_test' +require_relative 'diagnosticresult/diagnosticresult_code_search_test' +require_relative 'diagnosticresult/diagnosticresult_date_search_test' +require_relative 'diagnosticresult/diagnosticresult_status_search_test' require_relative 'diagnosticresult/diagnosticresult_patient_category_search_test' require_relative 'diagnosticresult/diagnosticresult_patient_category_date_search_test' require_relative 'diagnosticresult/diagnosticresult_patient_code_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_diagnosticresult_patient_search_test + test from: :au_core_v030_ballot_diagnosticresult_category_search_test + test from: :au_core_v030_ballot_diagnosticresult_code_search_test + test from: :au_core_v030_ballot_diagnosticresult_date_search_test + test from: :au_core_v030_ballot_diagnosticresult_status_search_test test from: :au_core_v030_ballot_diagnosticresult_patient_category_search_test test from: :au_core_v030_ballot_diagnosticresult_patient_category_date_search_test test from: :au_core_v030_ballot_diagnosticresult_patient_code_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_category_search_test.rb new file mode 100644 index 00000000..747fe783 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class DiagnosticresultPathCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_diagnosticresult_path_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:diagnosticresult_path_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_code_search_test.rb new file mode 100644 index 00000000..e7f1336b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class DiagnosticresultPathCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_diagnosticresult_path_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:diagnosticresult_path_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_date_search_test.rb new file mode 100644 index 00000000..40942a8f --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class DiagnosticresultPathDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_diagnosticresult_path_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:diagnosticresult_path_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_status_search_test.rb new file mode 100644 index 00000000..34319d9f --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/diagnosticresult_path_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class DiagnosticresultPathStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_diagnosticresult_path_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:diagnosticresult_path_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/metadata.yml index 086f3334..dda9b194 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path/metadata.yml @@ -35,6 +35,27 @@ - category :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -70,19 +91,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -94,6 +102,16 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: [] + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -119,16 +137,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: [] - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -147,6 +155,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -255,6 +276,14 @@ :tests: - :id: au_core_v030_ballot_diagnosticresult_path_patient_category_search_test :file_name: diagnosticresult_path_patient_category_search_test.rb +- :id: au_core_v030_ballot_diagnosticresult_path_category_search_test + :file_name: diagnosticresult_path_category_search_test.rb +- :id: au_core_v030_ballot_diagnosticresult_path_code_search_test + :file_name: diagnosticresult_path_code_search_test.rb +- :id: au_core_v030_ballot_diagnosticresult_path_date_search_test + :file_name: diagnosticresult_path_date_search_test.rb +- :id: au_core_v030_ballot_diagnosticresult_path_status_search_test + :file_name: diagnosticresult_path_status_search_test.rb - :id: au_core_v030_ballot_diagnosticresult_path_patient_search_test :file_name: diagnosticresult_path_patient_search_test.rb - :id: au_core_v030_ballot_diagnosticresult_path_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path_group.rb index 238867eb..d562c59d 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/diagnosticresult_path_group.rb @@ -1,4 +1,8 @@ require_relative 'diagnosticresult_path/diagnosticresult_path_patient_category_search_test' +require_relative 'diagnosticresult_path/diagnosticresult_path_category_search_test' +require_relative 'diagnosticresult_path/diagnosticresult_path_code_search_test' +require_relative 'diagnosticresult_path/diagnosticresult_path_date_search_test' +require_relative 'diagnosticresult_path/diagnosticresult_path_status_search_test' require_relative 'diagnosticresult_path/diagnosticresult_path_patient_search_test' require_relative 'diagnosticresult_path/diagnosticresult_path_patient_category_date_search_test' require_relative 'diagnosticresult_path/diagnosticresult_path_patient_code_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_diagnosticresult_path_patient_category_search_test + test from: :au_core_v030_ballot_diagnosticresult_path_category_search_test + test from: :au_core_v030_ballot_diagnosticresult_path_code_search_test + test from: :au_core_v030_ballot_diagnosticresult_path_date_search_test + test from: :au_core_v030_ballot_diagnosticresult_path_status_search_test test from: :au_core_v030_ballot_diagnosticresult_path_patient_search_test test from: :au_core_v030_ballot_diagnosticresult_path_patient_category_date_search_test test from: :au_core_v030_ballot_diagnosticresult_path_patient_code_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_class_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_class_search_test.rb new file mode 100644 index 00000000..dec2a45a --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_class_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class EncounterClassSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Encounter search by class' + description %( +A server MAY support searching by +class on the Encounter resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_encounter_class_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Encounter', + search_param_names: ['class'], + possible_status_search: true, + token_search_params: ['class'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:encounter_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_date_search_test.rb new file mode 100644 index 00000000..f8c1421a --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class EncounterDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Encounter search by date' + description %( +A server MAY support searching by +date on the Encounter resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_encounter_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Encounter', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:encounter_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_discharge_disposition_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_discharge_disposition_search_test.rb new file mode 100644 index 00000000..7d7f264b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_discharge_disposition_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class EncounterDischargeDispositionSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Encounter search by discharge-disposition' + description %( +A server MAY support searching by +discharge-disposition on the Encounter resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_encounter_discharge_disposition_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Encounter', + search_param_names: ['discharge-disposition'], + possible_status_search: true, + token_search_params: ['discharge-disposition'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:encounter_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_identifier_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_identifier_search_test.rb new file mode 100644 index 00000000..12e23326 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_identifier_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class EncounterIdentifierSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Encounter search by identifier' + description %( +A server MAY support searching by +identifier on the Encounter resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_encounter_identifier_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Encounter', + search_param_names: ['identifier'], + possible_status_search: true, + token_search_params: ['identifier'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:encounter_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_location_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_location_search_test.rb new file mode 100644 index 00000000..04dd30a5 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_location_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class EncounterLocationSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Encounter search by location' + description %( +A server MAY support searching by +location on the Encounter resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_encounter_location_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Encounter', + search_param_names: ['location'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:encounter_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_status_search_test.rb new file mode 100644 index 00000000..f8cb83eb --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class EncounterStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Encounter search by status' + description %( +A server MAY support searching by +status on the Encounter resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_encounter_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Encounter', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:encounter_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_type_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_type_search_test.rb new file mode 100644 index 00000000..7ac38479 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/encounter_type_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class EncounterTypeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Encounter search by type' + description %( +A server MAY support searching by +type on the Encounter resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_encounter_type_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Encounter', + search_param_names: ['type'], + possible_status_search: true, + token_search_params: ['type'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:encounter_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/metadata.yml index 182a7b6e..a234ae6a 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter/metadata.yml @@ -34,6 +34,42 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - class + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - discharge-disposition + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - identifier + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - location + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - type + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - date @@ -72,19 +108,16 @@ :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true :search_definitions: - :patient: + :class: :paths: - - subject + - class :full_paths: - - Encounter.subject + - Encounter.class :comparators: {} :values: [] - :type: Reference + :type: Coding :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :date: :paths: - actualPeriod @@ -104,25 +137,25 @@ :type: date :contains_multiple: false :multiple_or: MAY - :class: + :discharge-disposition: :paths: - - class + - hospitalization.dischargeDisposition :full_paths: - - Encounter.class + - Encounter.hospitalization.dischargeDisposition :comparators: {} :values: [] - :type: Coding + :type: CodeableConcept :contains_multiple: false :multiple_or: MAY - :discharge-disposition: + :identifier: :paths: - - hospitalization.dischargeDisposition + - identifier :full_paths: - - Encounter.hospitalization.dischargeDisposition + - Encounter.identifier :comparators: {} :values: [] - :type: CodeableConcept - :contains_multiple: false + :type: Identifier + :contains_multiple: true :multiple_or: MAY :location: :paths: @@ -163,6 +196,19 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Encounter.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -277,6 +323,20 @@ :tests: - :id: au_core_v030_ballot_encounter_patient_search_test :file_name: encounter_patient_search_test.rb +- :id: au_core_v030_ballot_encounter_class_search_test + :file_name: encounter_class_search_test.rb +- :id: au_core_v030_ballot_encounter_date_search_test + :file_name: encounter_date_search_test.rb +- :id: au_core_v030_ballot_encounter_discharge_disposition_search_test + :file_name: encounter_discharge_disposition_search_test.rb +- :id: au_core_v030_ballot_encounter_identifier_search_test + :file_name: encounter_identifier_search_test.rb +- :id: au_core_v030_ballot_encounter_location_search_test + :file_name: encounter_location_search_test.rb +- :id: au_core_v030_ballot_encounter_status_search_test + :file_name: encounter_status_search_test.rb +- :id: au_core_v030_ballot_encounter_type_search_test + :file_name: encounter_type_search_test.rb - :id: au_core_v030_ballot_encounter_date_patient_search_test :file_name: encounter_date_patient_search_test.rb - :id: au_core_v030_ballot_encounter_class_patient_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter_group.rb index c3d90d18..3ad05213 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/encounter_group.rb @@ -1,4 +1,11 @@ require_relative 'encounter/encounter_patient_search_test' +require_relative 'encounter/encounter_class_search_test' +require_relative 'encounter/encounter_date_search_test' +require_relative 'encounter/encounter_discharge_disposition_search_test' +require_relative 'encounter/encounter_identifier_search_test' +require_relative 'encounter/encounter_location_search_test' +require_relative 'encounter/encounter_status_search_test' +require_relative 'encounter/encounter_type_search_test' require_relative 'encounter/encounter_date_patient_search_test' require_relative 'encounter/encounter_class_patient_search_test' require_relative 'encounter/encounter_patient_discharge_disposition_search_test' @@ -83,6 +90,13 @@ def self.metadata end test from: :au_core_v030_ballot_encounter_patient_search_test + test from: :au_core_v030_ballot_encounter_class_search_test + test from: :au_core_v030_ballot_encounter_date_search_test + test from: :au_core_v030_ballot_encounter_discharge_disposition_search_test + test from: :au_core_v030_ballot_encounter_identifier_search_test + test from: :au_core_v030_ballot_encounter_location_search_test + test from: :au_core_v030_ballot_encounter_status_search_test + test from: :au_core_v030_ballot_encounter_type_search_test test from: :au_core_v030_ballot_encounter_date_patient_search_test test from: :au_core_v030_ballot_encounter_class_patient_search_test test from: :au_core_v030_ballot_encounter_patient_discharge_disposition_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_category_search_test.rb new file mode 100644 index 00000000..1200326c --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class HeartrateCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_heartrate_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:heartrate_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_code_search_test.rb new file mode 100644 index 00000000..d5ed6e96 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class HeartrateCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_heartrate_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:heartrate_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_date_search_test.rb new file mode 100644 index 00000000..3177fbfc --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class HeartrateDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_heartrate_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:heartrate_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_status_search_test.rb new file mode 100644 index 00000000..2b60897a --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/heartrate_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class HeartrateStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_heartrate_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:heartrate_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/metadata.yml index f45ecd8a..096868d8 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate/metadata.yml @@ -35,6 +35,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -70,19 +91,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -94,6 +102,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 8867-4 + - '364075005' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -119,18 +139,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 8867-4 - - '364075005' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -149,6 +157,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -285,6 +306,14 @@ :tests: - :id: au_core_v030_ballot_heartrate_patient_code_search_test :file_name: heartrate_patient_code_search_test.rb +- :id: au_core_v030_ballot_heartrate_category_search_test + :file_name: heartrate_category_search_test.rb +- :id: au_core_v030_ballot_heartrate_code_search_test + :file_name: heartrate_code_search_test.rb +- :id: au_core_v030_ballot_heartrate_date_search_test + :file_name: heartrate_date_search_test.rb +- :id: au_core_v030_ballot_heartrate_status_search_test + :file_name: heartrate_status_search_test.rb - :id: au_core_v030_ballot_heartrate_patient_search_test :file_name: heartrate_patient_search_test.rb - :id: au_core_v030_ballot_heartrate_patient_category_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate_group.rb index cbd249df..943696e6 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/heartrate_group.rb @@ -1,4 +1,8 @@ require_relative 'heartrate/heartrate_patient_code_search_test' +require_relative 'heartrate/heartrate_category_search_test' +require_relative 'heartrate/heartrate_code_search_test' +require_relative 'heartrate/heartrate_date_search_test' +require_relative 'heartrate/heartrate_status_search_test' require_relative 'heartrate/heartrate_patient_search_test' require_relative 'heartrate/heartrate_patient_category_search_test' require_relative 'heartrate/heartrate_patient_category_date_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_heartrate_patient_code_search_test + test from: :au_core_v030_ballot_heartrate_category_search_test + test from: :au_core_v030_ballot_heartrate_code_search_test + test from: :au_core_v030_ballot_heartrate_date_search_test + test from: :au_core_v030_ballot_heartrate_status_search_test test from: :au_core_v030_ballot_heartrate_patient_search_test test from: :au_core_v030_ballot_heartrate_patient_category_search_test test from: :au_core_v030_ballot_heartrate_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_date_search_test.rb new file mode 100644 index 00000000..f0c86683 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ImmunizationDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Immunization search by date' + description %( +A server MAY support searching by +date on the Immunization resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_immunization_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Immunization', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:immunization_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_patient_vaccine_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_patient_vaccine_code_search_test.rb new file mode 100644 index 00000000..d6dd539b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_patient_vaccine_code_search_test.rb @@ -0,0 +1,50 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ImmunizationPatientVaccineCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Immunization search by patient + vaccine-code' + description %( +A server MAY support searching by +patient + vaccine-code on the Immunization resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_immunization_patient_vaccine_code_search_test + optional + + input :patient_ids, + title: 'Patient IDs', + description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements', + default: 'bennelong-anne, smith-emma, baby-smith-john, dan-harry, italia-sofia, wang-li' + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Immunization', + search_param_names: ['patient', 'vaccine-code'], + possible_status_search: true, + token_search_params: ['vaccine-code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:immunization_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_status_search_test.rb new file mode 100644 index 00000000..b874a798 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ImmunizationStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Immunization search by status' + description %( +A server MAY support searching by +status on the Immunization resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_immunization_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Immunization', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:immunization_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_vaccine_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_vaccine_code_search_test.rb new file mode 100644 index 00000000..7a1b24d4 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/immunization_vaccine_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ImmunizationVaccineCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Immunization search by vaccine-code' + description %( +A server MAY support searching by +vaccine-code on the Immunization resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_immunization_vaccine_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Immunization', + search_param_names: ['vaccine-code'], + possible_status_search: true, + token_search_params: ['vaccine-code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:immunization_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/metadata.yml index d900f16b..1cbe88cf 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization/metadata.yml @@ -34,6 +34,22 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - vaccine-code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - patient @@ -47,20 +63,30 @@ :names_not_must_support_or_mandatory: - date :must_support_or_mandatory: false +- :expectation: MAY + :names: + - patient + - vaccine-code + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true :search_definitions: - :patient: - :paths: - - patient - :full_paths: - - Immunization.patient - :comparators: {} + :date: + :paths: [] + :full_paths: [] + :comparators: + :eq: MAY + :ne: MAY + :gt: MAY + :ge: MAY + :lt: MAY + :le: MAY + :sa: MAY + :eb: MAY + :ap: MAY :values: [] - :type: Reference + :type: date :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :status: :paths: - status @@ -74,23 +100,29 @@ :type: code :contains_multiple: false :multiple_or: MAY - :date: - :paths: [] - :full_paths: [] - :comparators: - :eq: MAY - :ne: MAY - :gt: MAY - :ge: MAY - :lt: MAY - :le: MAY - :sa: MAY - :eb: MAY - :ap: MAY + :vaccine-code: + :paths: + - vaccineCode + :full_paths: + - Immunization.vaccineCode + :comparators: {} :values: [] - :type: date + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY + :patient: + :paths: + - patient + :full_paths: + - Immunization.patient + :comparators: {} + :values: [] + :type: Reference :contains_multiple: false :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -195,10 +227,18 @@ :tests: - :id: au_core_v030_ballot_immunization_patient_search_test :file_name: immunization_patient_search_test.rb +- :id: au_core_v030_ballot_immunization_date_search_test + :file_name: immunization_date_search_test.rb +- :id: au_core_v030_ballot_immunization_status_search_test + :file_name: immunization_status_search_test.rb +- :id: au_core_v030_ballot_immunization_vaccine_code_search_test + :file_name: immunization_vaccine_code_search_test.rb - :id: au_core_v030_ballot_immunization_patient_status_search_test :file_name: immunization_patient_status_search_test.rb - :id: au_core_v030_ballot_immunization_patient_date_search_test :file_name: immunization_patient_date_search_test.rb +- :id: au_core_v030_ballot_immunization_patient_vaccine_code_search_test + :file_name: immunization_patient_vaccine_code_search_test.rb - :id: au_core_v030_ballot_immunization_read_test :file_name: immunization_read_test.rb - :id: au_core_v030_ballot_immunization_provenance_revinclude_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization_group.rb index b7b1a7f3..0dbd8173 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/immunization_group.rb @@ -1,6 +1,10 @@ require_relative 'immunization/immunization_patient_search_test' +require_relative 'immunization/immunization_date_search_test' +require_relative 'immunization/immunization_status_search_test' +require_relative 'immunization/immunization_vaccine_code_search_test' require_relative 'immunization/immunization_patient_status_search_test' require_relative 'immunization/immunization_patient_date_search_test' +require_relative 'immunization/immunization_patient_vaccine_code_search_test' require_relative 'immunization/immunization_read_test' require_relative 'immunization/immunization_provenance_revinclude_search_test' require_relative 'immunization/immunization_validation_test' @@ -79,8 +83,12 @@ def self.metadata end test from: :au_core_v030_ballot_immunization_patient_search_test + test from: :au_core_v030_ballot_immunization_date_search_test + test from: :au_core_v030_ballot_immunization_status_search_test + test from: :au_core_v030_ballot_immunization_vaccine_code_search_test test from: :au_core_v030_ballot_immunization_patient_status_search_test test from: :au_core_v030_ballot_immunization_patient_date_search_test + test from: :au_core_v030_ballot_immunization_patient_vaccine_code_search_test test from: :au_core_v030_ballot_immunization_read_test test from: :au_core_v030_ballot_immunization_provenance_revinclude_search_test test from: :au_core_v030_ballot_immunization_validation_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_authoredon_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_authoredon_search_test.rb new file mode 100644 index 00000000..df94bd06 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_authoredon_search_test.rb @@ -0,0 +1,49 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class MedicationRequestAuthoredonSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for MedicationRequest search by authoredon' + description %( +A server MAY support searching by +authoredon on the MedicationRequest resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +If any MedicationRequest resources use external references to +Medications, the search will be repeated with +`_include=MedicationRequest:medication`. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_medication_request_authoredon_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'MedicationRequest', + search_param_names: ['authoredon'], + possible_status_search: true, + test_medication_inclusion: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:medication_request_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_category_search_test.rb new file mode 100644 index 00000000..1ace09b2 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_category_search_test.rb @@ -0,0 +1,50 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class MedicationRequestCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for MedicationRequest search by category' + description %( +A server MAY support searching by +category on the MedicationRequest resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +If any MedicationRequest resources use external references to +Medications, the search will be repeated with +`_include=MedicationRequest:medication`. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_medication_request_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'MedicationRequest', + search_param_names: ['category'], + possible_status_search: true, + test_medication_inclusion: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:medication_request_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_intent_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_intent_search_test.rb new file mode 100644 index 00000000..2dc57a7f --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_intent_search_test.rb @@ -0,0 +1,49 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class MedicationRequestIntentSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for MedicationRequest search by intent' + description %( +A server MAY support searching by +intent on the MedicationRequest resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +If any MedicationRequest resources use external references to +Medications, the search will be repeated with +`_include=MedicationRequest:medication`. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_medication_request_intent_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'MedicationRequest', + search_param_names: ['intent'], + possible_status_search: true, + test_medication_inclusion: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:medication_request_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_status_search_test.rb new file mode 100644 index 00000000..a1558c92 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/medication_request_status_search_test.rb @@ -0,0 +1,48 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class MedicationRequestStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for MedicationRequest search by status' + description %( +A server MAY support searching by +status on the MedicationRequest resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +If any MedicationRequest resources use external references to +Medications, the search will be repeated with +`_include=MedicationRequest:medication`. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_medication_request_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'MedicationRequest', + search_param_names: ['status'], + test_medication_inclusion: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:medication_request_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/metadata.yml index 1f71a5ce..91bb5010 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request/metadata.yml @@ -44,6 +44,26 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - authoredon + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - intent + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - patient @@ -85,19 +105,35 @@ :type: Identifier :contains_multiple: true :multiple_or: MAY - :patient: + :category: :paths: - - subject + - category :full_paths: - - MedicationRequest.subject + - MedicationRequest.category :comparators: {} :values: [] - :type: Reference + :type: CodeableConcept + :contains_multiple: true + :multiple_or: MAY + :authoredon: + :paths: + - authoredOn + :full_paths: + - MedicationRequest.authoredOn + :comparators: + :eq: MAY + :ne: MAY + :gt: MAY + :ge: MAY + :lt: MAY + :le: MAY + :sa: MAY + :eb: MAY + :ap: MAY + :values: [] + :type: dateTime :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :intent: :paths: - intent @@ -126,25 +162,19 @@ :type: code :contains_multiple: false :multiple_or: MAY - :authoredon: + :patient: :paths: - - authoredOn + - subject :full_paths: - - MedicationRequest.authoredOn - :comparators: - :eq: MAY - :ne: MAY - :gt: MAY - :ge: MAY - :lt: MAY - :le: MAY - :sa: MAY - :eb: MAY - :ap: MAY + - MedicationRequest.subject + :comparators: {} :values: [] - :type: dateTime + :type: Reference :contains_multiple: false :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: - MedicationRequest:medication :revincludes: @@ -294,6 +324,14 @@ :file_name: medication_request_id_search_test.rb - :id: au_core_v030_ballot_medication_request_identifier_search_test :file_name: medication_request_identifier_search_test.rb +- :id: au_core_v030_ballot_medication_request_category_search_test + :file_name: medication_request_category_search_test.rb +- :id: au_core_v030_ballot_medication_request_authoredon_search_test + :file_name: medication_request_authoredon_search_test.rb +- :id: au_core_v030_ballot_medication_request_intent_search_test + :file_name: medication_request_intent_search_test.rb +- :id: au_core_v030_ballot_medication_request_status_search_test + :file_name: medication_request_status_search_test.rb - :id: au_core_v030_ballot_medication_request_patient_intent_search_test :file_name: medication_request_patient_intent_search_test.rb - :id: au_core_v030_ballot_medication_request_patient_intent_status_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request_group.rb index 1859d71b..e0ca5b6a 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_request_group.rb @@ -1,6 +1,10 @@ require_relative 'medication_request/medication_request_patient_search_test' require_relative 'medication_request/medication_request_id_search_test' require_relative 'medication_request/medication_request_identifier_search_test' +require_relative 'medication_request/medication_request_category_search_test' +require_relative 'medication_request/medication_request_authoredon_search_test' +require_relative 'medication_request/medication_request_intent_search_test' +require_relative 'medication_request/medication_request_status_search_test' require_relative 'medication_request/medication_request_patient_intent_search_test' require_relative 'medication_request/medication_request_patient_intent_status_search_test' require_relative 'medication_request/medication_request_patient_intent_authoredon_search_test' @@ -89,6 +93,10 @@ def self.metadata test from: :au_core_v030_ballot_medication_request_patient_search_test test from: :au_core_v030_ballot_medication_request__id_search_test test from: :au_core_v030_ballot_medication_request_identifier_search_test + test from: :au_core_v030_ballot_medication_request_category_search_test + test from: :au_core_v030_ballot_medication_request_authoredon_search_test + test from: :au_core_v030_ballot_medication_request_intent_search_test + test from: :au_core_v030_ballot_medication_request_status_search_test test from: :au_core_v030_ballot_medication_request_patient_intent_search_test test from: :au_core_v030_ballot_medication_request_patient_intent_status_search_test test from: :au_core_v030_ballot_medication_request_patient_intent_authoredon_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/medication_statement_effective_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/medication_statement_effective_search_test.rb new file mode 100644 index 00000000..6c5a9a15 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/medication_statement_effective_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class MedicationStatementEffectiveSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for MedicationStatement search by effective' + description %( +A server MAY support searching by +effective on the MedicationStatement resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_medication_statement_effective_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'MedicationStatement', + search_param_names: ['effective'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:medication_statement_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/medication_statement_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/medication_statement_status_search_test.rb new file mode 100644 index 00000000..d7331768 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/medication_statement_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class MedicationStatementStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for MedicationStatement search by status' + description %( +A server MAY support searching by +status on the MedicationStatement resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_medication_statement_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'MedicationStatement', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:medication_statement_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/metadata.yml index 930318bd..c46a6384 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement/metadata.yml @@ -34,6 +34,17 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - effective + :expectation: MAY + :names_not_must_support_or_mandatory: + - effective + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - patient @@ -48,19 +59,27 @@ - effective :must_support_or_mandatory: false :search_definitions: - :patient: + :effective: :paths: - - subject + - effectiveDateTime + - effectivePeriod :full_paths: - - MedicationStatement.subject - :comparators: {} + - MedicationStatement.effectiveDateTime + - MedicationStatement.effectivePeriod + :comparators: + :eq: MAY + :ne: MAY + :gt: MAY + :ge: MAY + :lt: MAY + :le: MAY + :sa: MAY + :eb: MAY + :ap: MAY :values: [] - :type: Reference + :type: date :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :status: :paths: - status @@ -79,27 +98,19 @@ :type: code :contains_multiple: false :multiple_or: MAY - :effective: + :patient: :paths: - - effectiveDateTime - - effectivePeriod + - subject :full_paths: - - MedicationStatement.effectiveDateTime - - MedicationStatement.effectivePeriod - :comparators: - :eq: MAY - :ne: MAY - :gt: MAY - :ge: MAY - :lt: MAY - :le: MAY - :sa: MAY - :eb: MAY - :ap: MAY + - MedicationStatement.subject + :comparators: {} :values: [] - :type: date + :type: Reference :contains_multiple: false :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: - MedicationStatement:medication :revincludes: @@ -201,6 +212,10 @@ :tests: - :id: au_core_v030_ballot_medication_statement_patient_search_test :file_name: medication_statement_patient_search_test.rb +- :id: au_core_v030_ballot_medication_statement_effective_search_test + :file_name: medication_statement_effective_search_test.rb +- :id: au_core_v030_ballot_medication_statement_status_search_test + :file_name: medication_statement_status_search_test.rb - :id: au_core_v030_ballot_medication_statement_patient_status_search_test :file_name: medication_statement_patient_status_search_test.rb - :id: au_core_v030_ballot_medication_statement_patient_effective_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement_group.rb index c88a376f..8e350fa6 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/medication_statement_group.rb @@ -1,4 +1,6 @@ require_relative 'medication_statement/medication_statement_patient_search_test' +require_relative 'medication_statement/medication_statement_effective_search_test' +require_relative 'medication_statement/medication_statement_status_search_test' require_relative 'medication_statement/medication_statement_patient_status_search_test' require_relative 'medication_statement/medication_statement_patient_effective_search_test' require_relative 'medication_statement/medication_statement_read_test' @@ -79,6 +81,8 @@ def self.metadata end test from: :au_core_v030_ballot_medication_statement_patient_search_test + test from: :au_core_v030_ballot_medication_statement_effective_search_test + test from: :au_core_v030_ballot_medication_statement_status_search_test test from: :au_core_v030_ballot_medication_statement_patient_status_search_test test from: :au_core_v030_ballot_medication_statement_patient_effective_search_test test from: :au_core_v030_ballot_medication_statement_read_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/metadata.yml index 95f02ccf..c558ae08 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/metadata.yml @@ -37,6 +37,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -72,19 +93,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -96,6 +104,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 29463-7 + - '27113001' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -121,18 +141,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 29463-7 - - '27113001' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -151,6 +159,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: &1 [] :revincludes: &2 - Provenance:target @@ -329,6 +350,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -364,19 +406,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -388,6 +417,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 85354-9 + - '75367002' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -413,18 +454,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 85354-9 - - '75367002' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -443,6 +472,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: *1 :revincludes: *2 :required_concepts: [] @@ -650,6 +692,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -685,19 +748,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -709,6 +759,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 8302-2 + - '50373000' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -734,18 +796,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 8302-2 - - '50373000' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -764,6 +814,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: *1 :revincludes: *2 :required_concepts: [] @@ -941,6 +1004,27 @@ - category :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -976,19 +1060,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -1000,6 +1071,16 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: [] + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -1025,16 +1106,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: [] - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -1053,6 +1124,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: *1 :revincludes: *2 :required_concepts: [] @@ -1199,6 +1283,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -1234,19 +1339,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -1258,6 +1350,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 8310-5 + - '386725007' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -1283,18 +1387,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 8310-5 - - '386725007' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -1313,6 +1405,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: *1 :revincludes: *2 :required_concepts: [] @@ -1490,6 +1595,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -1525,19 +1651,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -1549,6 +1662,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 8867-4 + - '364075005' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -1574,18 +1699,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 8867-4 - - '364075005' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -1604,6 +1717,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: *1 :revincludes: *2 :required_concepts: [] @@ -1778,6 +1904,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -1813,29 +1960,28 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: + :category: :paths: - - subject + - category :full_paths: - - Observation.subject + - Observation.category :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false + :values: + - vital-signs + :type: CodeableConcept + :contains_multiple: true :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD - :category: + :code: :paths: - - category + - code :full_paths: - - Observation.category + - Observation.code :comparators: {} :values: - - vital-signs + - 8280-0 + - '276361009' :type: CodeableConcept - :contains_multiple: true + :contains_multiple: false :multiple_or: MAY :date: :paths: @@ -1862,18 +2008,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 8280-0 - - '276361009' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -1892,6 +2026,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: *1 :revincludes: *2 :required_concepts: [] @@ -2064,6 +2211,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -2099,19 +2267,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -2123,6 +2278,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 9279-1 + - '86290005' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -2148,18 +2315,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 9279-1 - - '86290005' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -2178,6 +2333,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: *1 :revincludes: *2 :required_concepts: [] @@ -2351,6 +2519,27 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - patient @@ -2387,28 +2576,25 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: + :category: :paths: - - subject + - category :full_paths: - - Observation.subject + - Observation.category :comparators: {} :values: [] - :type: Reference - :contains_multiple: false + :type: CodeableConcept + :contains_multiple: true :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD - :category: + :code: :paths: - - category + - code :full_paths: - - Observation.category + - Observation.code :comparators: {} :values: [] :type: CodeableConcept - :contains_multiple: true + :contains_multiple: false :multiple_or: MAY :date: :paths: @@ -2435,16 +2621,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: [] - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -2463,6 +2639,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: *1 :revincludes: *2 :required_concepts: [] @@ -2605,6 +2794,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -2640,19 +2850,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -2663,6 +2860,17 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - '266918002' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -2688,17 +2896,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - '266918002' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -2717,6 +2914,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: *1 :revincludes: *2 :required_concepts: [] @@ -2848,26 +3058,18 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true - - :expectation: SHOULD - :names: - - patient - - clinical-status - :names_not_must_support_or_mandatory: [] - :must_support_or_mandatory: true - :search_definitions: - :patient: - :paths: - - patient - :full_paths: - - AllergyIntolerance.patient - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD + - :names: + - clinical-status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :expectation: SHOULD + :names: + - patient + - clinical-status + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + :search_definitions: :clinical-status: :paths: - clinicalStatus @@ -2881,6 +3083,19 @@ :type: CodeableConcept :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - patient + :full_paths: + - AllergyIntolerance.patient + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -3007,6 +3222,27 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - clinical-status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - onset-date + :expectation: MAY + :names_not_must_support_or_mandatory: + - onset-date + :must_support_or_mandatory: false - :expectation: SHALL :names: - patient @@ -3040,19 +3276,6 @@ - onset-date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Condition.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -3110,6 +3333,19 @@ :type: date :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Condition.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -3228,6 +3464,42 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - class + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - discharge-disposition + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - identifier + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - location + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - type + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - date @@ -3266,19 +3538,16 @@ :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true :search_definitions: - :patient: + :class: :paths: - - subject + - class :full_paths: - - Encounter.subject + - Encounter.class :comparators: {} :values: [] - :type: Reference + :type: Coding :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :date: :paths: - actualPeriod @@ -3298,25 +3567,25 @@ :type: date :contains_multiple: false :multiple_or: MAY - :class: + :discharge-disposition: :paths: - - class + - hospitalization.dischargeDisposition :full_paths: - - Encounter.class + - Encounter.hospitalization.dischargeDisposition :comparators: {} :values: [] - :type: Coding + :type: CodeableConcept :contains_multiple: false :multiple_or: MAY - :discharge-disposition: + :identifier: :paths: - - hospitalization.dischargeDisposition + - identifier :full_paths: - - Encounter.hospitalization.dischargeDisposition + - Encounter.identifier :comparators: {} :values: [] - :type: CodeableConcept - :contains_multiple: false + :type: Identifier + :contains_multiple: true :multiple_or: MAY :location: :paths: @@ -3357,6 +3626,19 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Encounter.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -3514,6 +3796,22 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - vaccine-code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - patient @@ -3527,20 +3825,30 @@ :names_not_must_support_or_mandatory: - date :must_support_or_mandatory: false + - :expectation: MAY + :names: + - patient + - vaccine-code + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true :search_definitions: - :patient: - :paths: - - patient - :full_paths: - - Immunization.patient - :comparators: {} + :date: + :paths: [] + :full_paths: [] + :comparators: + :eq: MAY + :ne: MAY + :gt: MAY + :ge: MAY + :lt: MAY + :le: MAY + :sa: MAY + :eb: MAY + :ap: MAY :values: [] - :type: Reference + :type: date :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :status: :paths: - status @@ -3554,23 +3862,29 @@ :type: code :contains_multiple: false :multiple_or: MAY - :date: - :paths: [] - :full_paths: [] - :comparators: - :eq: MAY - :ne: MAY - :gt: MAY - :ge: MAY - :lt: MAY - :le: MAY - :sa: MAY - :eb: MAY - :ap: MAY + :vaccine-code: + :paths: + - vaccineCode + :full_paths: + - Immunization.vaccineCode + :comparators: {} :values: [] - :type: date + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY + :patient: + :paths: + - patient + :full_paths: + - Immunization.patient + :comparators: {} + :values: [] + :type: Reference :contains_multiple: false :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -3736,6 +4050,11 @@ :names_not_must_support_or_mandatory: - address-postalcode :must_support_or_mandatory: false + - :names: + - identifier + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true :search_definitions: :address: :paths: @@ -3789,6 +4108,16 @@ :type: string :contains_multiple: false :multiple_or: MAY + :identifier: + :paths: + - identifier + :full_paths: + - Location.identifier + :comparators: {} + :values: [] + :type: Identifier + :contains_multiple: true + :multiple_or: MAY :include_params: [] :revincludes: - Provenance:target @@ -3960,13 +4289,33 @@ :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true - :names: - - _id - :expectation: SHALL + - _id + :expectation: SHALL + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - identifier + :expectation: SHALL + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - authoredon + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - intent + :expectation: MAY :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true - :names: - - identifier - :expectation: SHALL + - status + :expectation: MAY :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true - :expectation: SHALL @@ -4010,19 +4359,35 @@ :type: Identifier :contains_multiple: true :multiple_or: MAY - :patient: + :category: :paths: - - subject + - category :full_paths: - - MedicationRequest.subject + - MedicationRequest.category :comparators: {} :values: [] - :type: Reference + :type: CodeableConcept + :contains_multiple: true + :multiple_or: MAY + :authoredon: + :paths: + - authoredOn + :full_paths: + - MedicationRequest.authoredOn + :comparators: + :eq: MAY + :ne: MAY + :gt: MAY + :ge: MAY + :lt: MAY + :le: MAY + :sa: MAY + :eb: MAY + :ap: MAY + :values: [] + :type: dateTime :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :intent: :paths: - intent @@ -4051,25 +4416,19 @@ :type: code :contains_multiple: false :multiple_or: MAY - :authoredon: + :patient: :paths: - - authoredOn + - subject :full_paths: - - MedicationRequest.authoredOn - :comparators: - :eq: MAY - :ne: MAY - :gt: MAY - :ge: MAY - :lt: MAY - :le: MAY - :sa: MAY - :eb: MAY - :ap: MAY + - MedicationRequest.subject + :comparators: {} :values: [] - :type: dateTime + :type: Reference :contains_multiple: false :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: - MedicationRequest:medication :revincludes: @@ -4256,6 +4615,17 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - effective + :expectation: MAY + :names_not_must_support_or_mandatory: + - effective + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - patient @@ -4270,19 +4640,27 @@ - effective :must_support_or_mandatory: false :search_definitions: - :patient: + :effective: :paths: - - subject + - effectiveDateTime + - effectivePeriod :full_paths: - - MedicationStatement.subject - :comparators: {} + - MedicationStatement.effectiveDateTime + - MedicationStatement.effectivePeriod + :comparators: + :eq: MAY + :ne: MAY + :gt: MAY + :ge: MAY + :lt: MAY + :le: MAY + :sa: MAY + :eb: MAY + :ap: MAY :values: [] - :type: Reference + :type: date :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :status: :paths: - status @@ -4301,27 +4679,19 @@ :type: code :contains_multiple: false :multiple_or: MAY - :effective: + :patient: :paths: - - effectiveDateTime - - effectivePeriod + - subject :full_paths: - - MedicationStatement.effectiveDateTime - - MedicationStatement.effectivePeriod - :comparators: - :eq: MAY - :ne: MAY - :gt: MAY - :ge: MAY - :lt: MAY - :le: MAY - :sa: MAY - :eb: MAY - :ap: MAY + - MedicationStatement.subject + :comparators: {} :values: [] - :type: date + :type: Reference :contains_multiple: false :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: - MedicationStatement:medication :revincludes: @@ -4584,12 +4954,28 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - birthdate + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - family :expectation: SHOULD :names_not_must_support_or_mandatory: - family :must_support_or_mandatory: false + - :names: + - gender + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - indigenous-status + :expectation: MAY + :names_not_must_support_or_mandatory: + - indigenous-status + :must_support_or_mandatory: false - :names: - identifier :expectation: SHALL @@ -4600,6 +4986,12 @@ :expectation: SHOULD :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - patient-gender-identity + :expectation: MAY + :names_not_must_support_or_mandatory: + - patient-gender-identity + :must_support_or_mandatory: false - :expectation: SHOULD :names: - birthdate @@ -4637,6 +5029,25 @@ :type: http://hl7.org/fhirpath/System.String :contains_multiple: false :multiple_or: MAY + :birthdate: + :paths: + - birthDate + :full_paths: + - Patient.birthDate + :comparators: + :eq: MAY + :ne: MAY + :gt: MAY + :ge: MAY + :lt: MAY + :le: MAY + :sa: MAY + :eb: MAY + :ap: MAY + :values: [] + :type: date + :contains_multiple: false + :multiple_or: MAY :family: :paths: - name.family @@ -4647,6 +5058,26 @@ :type: string :contains_multiple: false :multiple_or: MAY + :gender: + :paths: + - gender + :full_paths: + - Patient.gender + :comparators: {} + :values: [] + :type: code + :contains_multiple: false + :multiple_or: MAY + :indigenous-status: + :paths: + - extension('http://hl7.org.au/fhir/StructureDefinition/indigenous-status').value + :full_paths: + - Patient.extension('http://hl7.org.au/fhir/StructureDefinition/indigenous-status').value + :comparators: {} + :values: [] + :type: token + :contains_multiple: false + :multiple_or: MAY :identifier: :paths: - identifier @@ -4667,33 +5098,14 @@ :type: HumanName :contains_multiple: true :multiple_or: MAY - :birthdate: - :paths: - - birthDate - :full_paths: - - Patient.birthDate - :comparators: - :eq: MAY - :ne: MAY - :gt: MAY - :ge: MAY - :lt: MAY - :le: MAY - :sa: MAY - :eb: MAY - :ap: MAY - :values: [] - :type: date - :contains_multiple: false - :multiple_or: MAY - :gender: + :patient-gender-identity: :paths: - - gender + - extension('http://hl7.org/fhir/StructureDefinition/patient-genderIdentity').value :full_paths: - - Patient.gender + - Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-genderIdentity').value :comparators: {} :values: [] - :type: code + :type: token :contains_multiple: false :multiple_or: MAY :include_params: [] @@ -4930,6 +5342,11 @@ :expectation: SHOULD :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - organization + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true :search_definitions: :_id: :paths: @@ -4974,6 +5391,16 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :organization: + :paths: + - organization + :full_paths: + - PractitionerRole.organization + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY :include_params: - PractitionerRole:practitioner :revincludes: @@ -5071,6 +5498,22 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true + - :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true + - :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false + - :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - patient @@ -5093,19 +5536,16 @@ :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true :search_definitions: - :patient: + :code: :paths: - - subject + - code :full_paths: - - Procedure.subject + - Procedure.code :comparators: {} :values: [] - :type: Reference + :type: CodeableConcept :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :date: :paths: - occurrenceDateTime @@ -5129,16 +5569,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Procedure.code - :comparators: {} - :values: [] - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -5157,6 +5587,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Procedure.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/metadata.yml index 5d37e2cc..9e03cc0a 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/metadata.yml @@ -34,12 +34,28 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - birthdate + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - family :expectation: SHOULD :names_not_must_support_or_mandatory: - family :must_support_or_mandatory: false +- :names: + - gender + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - indigenous-status + :expectation: MAY + :names_not_must_support_or_mandatory: + - indigenous-status + :must_support_or_mandatory: false - :names: - identifier :expectation: SHALL @@ -50,6 +66,12 @@ :expectation: SHOULD :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - patient-gender-identity + :expectation: MAY + :names_not_must_support_or_mandatory: + - patient-gender-identity + :must_support_or_mandatory: false - :expectation: SHOULD :names: - birthdate @@ -87,6 +109,25 @@ :type: http://hl7.org/fhirpath/System.String :contains_multiple: false :multiple_or: MAY + :birthdate: + :paths: + - birthDate + :full_paths: + - Patient.birthDate + :comparators: + :eq: MAY + :ne: MAY + :gt: MAY + :ge: MAY + :lt: MAY + :le: MAY + :sa: MAY + :eb: MAY + :ap: MAY + :values: [] + :type: date + :contains_multiple: false + :multiple_or: MAY :family: :paths: - name.family @@ -97,6 +138,26 @@ :type: string :contains_multiple: false :multiple_or: MAY + :gender: + :paths: + - gender + :full_paths: + - Patient.gender + :comparators: {} + :values: [] + :type: code + :contains_multiple: false + :multiple_or: MAY + :indigenous-status: + :paths: + - extension('http://hl7.org.au/fhir/StructureDefinition/indigenous-status').value + :full_paths: + - Patient.extension('http://hl7.org.au/fhir/StructureDefinition/indigenous-status').value + :comparators: {} + :values: [] + :type: token + :contains_multiple: false + :multiple_or: MAY :identifier: :paths: - identifier @@ -117,33 +178,14 @@ :type: HumanName :contains_multiple: true :multiple_or: MAY - :birthdate: - :paths: - - birthDate - :full_paths: - - Patient.birthDate - :comparators: - :eq: MAY - :ne: MAY - :gt: MAY - :ge: MAY - :lt: MAY - :le: MAY - :sa: MAY - :eb: MAY - :ap: MAY - :values: [] - :type: date - :contains_multiple: false - :multiple_or: MAY - :gender: + :patient-gender-identity: :paths: - - gender + - extension('http://hl7.org/fhir/StructureDefinition/patient-genderIdentity').value :full_paths: - - Patient.gender + - Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-genderIdentity').value :comparators: {} :values: [] - :type: code + :type: token :contains_multiple: false :multiple_or: MAY :include_params: [] @@ -222,12 +264,20 @@ :tests: - :id: au_core_v030_ballot_patient__id_search_test :file_name: patient_id_search_test.rb +- :id: au_core_v030_ballot_patient_birthdate_search_test + :file_name: patient_birthdate_search_test.rb - :id: au_core_v030_ballot_patient_family_search_test :file_name: patient_family_search_test.rb +- :id: au_core_v030_ballot_patient_gender_search_test + :file_name: patient_gender_search_test.rb +- :id: au_core_v030_ballot_patient_indigenous_status_search_test + :file_name: patient_indigenous_status_search_test.rb - :id: au_core_v030_ballot_patient_identifier_search_test :file_name: patient_identifier_search_test.rb - :id: au_core_v030_ballot_patient_name_search_test :file_name: patient_name_search_test.rb +- :id: au_core_v030_ballot_patient_patient_gender_identity_search_test + :file_name: patient_patient_gender_identity_search_test.rb - :id: au_core_v030_ballot_patient_birthdate_family_search_test :file_name: patient_birthdate_family_search_test.rb - :id: au_core_v030_ballot_patient_birthdate_name_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_family_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_family_search_test.rb index 955b4559..fac5845e 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_family_search_test.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_family_search_test.rb @@ -23,7 +23,8 @@ class PatientBirthdateFamilySearchTest < Inferno::Test def self.properties @properties ||= SearchTestProperties.new( resource_type: 'Patient', - search_param_names: ['birthdate', 'family'] + search_param_names: ['birthdate', 'family'], + possible_status_search: true ) end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_name_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_name_search_test.rb index 366ee9e0..ce0bcb51 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_name_search_test.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_name_search_test.rb @@ -23,7 +23,8 @@ class PatientBirthdateNameSearchTest < Inferno::Test def self.properties @properties ||= SearchTestProperties.new( resource_type: 'Patient', - search_param_names: ['birthdate', 'name'] + search_param_names: ['birthdate', 'name'], + possible_status_search: true ) end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_search_test.rb new file mode 100644 index 00000000..c71506c5 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_birthdate_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class PatientBirthdateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Patient search by birthdate' + description %( +A server MAY support searching by +birthdate on the Patient resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_patient_birthdate_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Patient', + search_param_names: ['birthdate'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:patient_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_family_gender_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_family_gender_search_test.rb index d2cfb0c6..9b6d66a7 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_family_gender_search_test.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_family_gender_search_test.rb @@ -23,7 +23,8 @@ class PatientFamilyGenderSearchTest < Inferno::Test def self.properties @properties ||= SearchTestProperties.new( resource_type: 'Patient', - search_param_names: ['family', 'gender'] + search_param_names: ['family', 'gender'], + possible_status_search: true ) end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_family_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_family_search_test.rb index d6abced4..89a48f7b 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_family_search_test.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_family_search_test.rb @@ -23,7 +23,8 @@ class PatientFamilySearchTest < Inferno::Test def self.properties @properties ||= SearchTestProperties.new( resource_type: 'Patient', - search_param_names: ['family'] + search_param_names: ['family'], + possible_status_search: true ) end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_gender_name_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_gender_name_search_test.rb index 33370624..a27f8dfe 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_gender_name_search_test.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_gender_name_search_test.rb @@ -23,7 +23,8 @@ class PatientGenderNameSearchTest < Inferno::Test def self.properties @properties ||= SearchTestProperties.new( resource_type: 'Patient', - search_param_names: ['gender', 'name'] + search_param_names: ['gender', 'name'], + possible_status_search: true ) end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_gender_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_gender_search_test.rb new file mode 100644 index 00000000..dcb4c93b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_gender_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class PatientGenderSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Patient search by gender' + description %( +A server MAY support searching by +gender on the Patient resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_patient_gender_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Patient', + search_param_names: ['gender'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:patient_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_id_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_id_search_test.rb index cc02c7b9..210cbe48 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_id_search_test.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_id_search_test.rb @@ -36,6 +36,7 @@ def self.properties first_search: true, resource_type: 'Patient', search_param_names: ['_id'], + possible_status_search: true, test_post_search: true ) end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_identifier_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_identifier_search_test.rb index cfdaf5ee..3135da9c 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_identifier_search_test.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_identifier_search_test.rb @@ -22,6 +22,7 @@ def self.properties @properties ||= SearchTestProperties.new( resource_type: 'Patient', search_param_names: ['identifier'], + possible_status_search: true, token_search_params: ['identifier'] ) end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_indigenous_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_indigenous_status_search_test.rb new file mode 100644 index 00000000..cd251207 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_indigenous_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class PatientIndigenousStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Patient search by indigenous-status' + description %( +A server MAY support searching by +indigenous-status on the Patient resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_patient_indigenous_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Patient', + search_param_names: ['indigenous-status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:patient_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_name_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_name_search_test.rb index 0a6ef283..175ae85b 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_name_search_test.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_name_search_test.rb @@ -23,7 +23,8 @@ class PatientNameSearchTest < Inferno::Test def self.properties @properties ||= SearchTestProperties.new( resource_type: 'Patient', - search_param_names: ['name'] + search_param_names: ['name'], + possible_status_search: true ) end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_patient_gender_identity_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_patient_gender_identity_search_test.rb new file mode 100644 index 00000000..1bd90559 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient/patient_patient_gender_identity_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class PatientPatientGenderIdentitySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Patient search by patient-gender-identity' + description %( +A server MAY support searching by +patient-gender-identity on the Patient resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_patient_patient_gender_identity_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Patient', + search_param_names: ['patient-gender-identity'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:patient_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient_group.rb index 30a03365..0bcb3631 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/patient_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/patient_group.rb @@ -1,7 +1,11 @@ require_relative 'patient/patient_id_search_test' +require_relative 'patient/patient_birthdate_search_test' require_relative 'patient/patient_family_search_test' +require_relative 'patient/patient_gender_search_test' +require_relative 'patient/patient_indigenous_status_search_test' require_relative 'patient/patient_identifier_search_test' require_relative 'patient/patient_name_search_test' +require_relative 'patient/patient_patient_gender_identity_search_test' require_relative 'patient/patient_birthdate_family_search_test' require_relative 'patient/patient_birthdate_name_search_test' require_relative 'patient/patient_family_gender_search_test' @@ -83,9 +87,13 @@ def self.metadata end test from: :au_core_v030_ballot_patient__id_search_test + test from: :au_core_v030_ballot_patient_birthdate_search_test test from: :au_core_v030_ballot_patient_family_search_test + test from: :au_core_v030_ballot_patient_gender_search_test + test from: :au_core_v030_ballot_patient_indigenous_status_search_test test from: :au_core_v030_ballot_patient_identifier_search_test test from: :au_core_v030_ballot_patient_name_search_test + test from: :au_core_v030_ballot_patient_patient_gender_identity_search_test test from: :au_core_v030_ballot_patient_birthdate_family_search_test test from: :au_core_v030_ballot_patient_birthdate_name_search_test test from: :au_core_v030_ballot_patient_family_gender_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/metadata.yml index 0595c375..61ecbe43 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/metadata.yml @@ -34,6 +34,22 @@ :expectation: SHALL :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :expectation: SHALL :names: - patient @@ -56,19 +72,16 @@ :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true :search_definitions: - :patient: + :code: :paths: - - subject + - code :full_paths: - - Procedure.subject + - Procedure.code :comparators: {} :values: [] - :type: Reference + :type: CodeableConcept :contains_multiple: false :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :date: :paths: - occurrenceDateTime @@ -92,16 +105,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Procedure.code - :comparators: {} - :values: [] - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -120,6 +123,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Procedure.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -234,6 +250,12 @@ :tests: - :id: au_core_v030_ballot_procedure_patient_search_test :file_name: procedure_patient_search_test.rb +- :id: au_core_v030_ballot_procedure_code_search_test + :file_name: procedure_code_search_test.rb +- :id: au_core_v030_ballot_procedure_date_search_test + :file_name: procedure_date_search_test.rb +- :id: au_core_v030_ballot_procedure_status_search_test + :file_name: procedure_status_search_test.rb - :id: au_core_v030_ballot_procedure_patient_date_search_test :file_name: procedure_patient_date_search_test.rb - :id: au_core_v030_ballot_procedure_patient_code_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_code_search_test.rb new file mode 100644 index 00000000..45998cc4 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ProcedureCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Procedure search by code' + description %( +A server MAY support searching by +code on the Procedure resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_procedure_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Procedure', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:procedure_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_date_search_test.rb new file mode 100644 index 00000000..9c24463a --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ProcedureDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Procedure search by date' + description %( +A server MAY support searching by +date on the Procedure resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_procedure_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Procedure', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:procedure_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_status_search_test.rb new file mode 100644 index 00000000..5ea6d44b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure/procedure_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ProcedureStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Procedure search by status' + description %( +A server MAY support searching by +status on the Procedure resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_procedure_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Procedure', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:procedure_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure_group.rb index ca10cedb..8638fec1 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/procedure_group.rb @@ -1,4 +1,7 @@ require_relative 'procedure/procedure_patient_search_test' +require_relative 'procedure/procedure_code_search_test' +require_relative 'procedure/procedure_date_search_test' +require_relative 'procedure/procedure_status_search_test' require_relative 'procedure/procedure_patient_date_search_test' require_relative 'procedure/procedure_patient_code_date_search_test' require_relative 'procedure/procedure_patient_status_search_test' @@ -80,6 +83,9 @@ def self.metadata end test from: :au_core_v030_ballot_procedure_patient_search_test + test from: :au_core_v030_ballot_procedure_code_search_test + test from: :au_core_v030_ballot_procedure_date_search_test + test from: :au_core_v030_ballot_procedure_status_search_test test from: :au_core_v030_ballot_procedure_patient_date_search_test test from: :au_core_v030_ballot_procedure_patient_code_date_search_test test from: :au_core_v030_ballot_procedure_patient_status_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/metadata.yml index 0b1dd3bc..54137c90 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/metadata.yml @@ -35,6 +35,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -70,19 +91,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -94,6 +102,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 9279-1 + - '86290005' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -119,18 +139,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 9279-1 - - '86290005' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -149,6 +157,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -285,6 +306,14 @@ :tests: - :id: au_core_v030_ballot_resprate_patient_code_search_test :file_name: resprate_patient_code_search_test.rb +- :id: au_core_v030_ballot_resprate_category_search_test + :file_name: resprate_category_search_test.rb +- :id: au_core_v030_ballot_resprate_code_search_test + :file_name: resprate_code_search_test.rb +- :id: au_core_v030_ballot_resprate_date_search_test + :file_name: resprate_date_search_test.rb +- :id: au_core_v030_ballot_resprate_status_search_test + :file_name: resprate_status_search_test.rb - :id: au_core_v030_ballot_resprate_patient_search_test :file_name: resprate_patient_search_test.rb - :id: au_core_v030_ballot_resprate_patient_category_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_category_search_test.rb new file mode 100644 index 00000000..53f610a2 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ResprateCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_resprate_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:resprate_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_code_search_test.rb new file mode 100644 index 00000000..86efe16e --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ResprateCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_resprate_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:resprate_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_date_search_test.rb new file mode 100644 index 00000000..297c8519 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ResprateDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_resprate_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:resprate_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_status_search_test.rb new file mode 100644 index 00000000..42b1cbb6 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate/resprate_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class ResprateStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_resprate_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:resprate_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate_group.rb index 7b2e5f3b..375a1cb2 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/resprate_group.rb @@ -1,4 +1,8 @@ require_relative 'resprate/resprate_patient_code_search_test' +require_relative 'resprate/resprate_category_search_test' +require_relative 'resprate/resprate_code_search_test' +require_relative 'resprate/resprate_date_search_test' +require_relative 'resprate/resprate_status_search_test' require_relative 'resprate/resprate_patient_search_test' require_relative 'resprate/resprate_patient_category_search_test' require_relative 'resprate/resprate_patient_category_date_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_resprate_patient_code_search_test + test from: :au_core_v030_ballot_resprate_category_search_test + test from: :au_core_v030_ballot_resprate_code_search_test + test from: :au_core_v030_ballot_resprate_date_search_test + test from: :au_core_v030_ballot_resprate_status_search_test test from: :au_core_v030_ballot_resprate_patient_search_test test from: :au_core_v030_ballot_resprate_patient_category_search_test test from: :au_core_v030_ballot_resprate_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/metadata.yml index 3e6ede87..d411828a 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/metadata.yml @@ -35,6 +35,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -70,19 +91,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -93,6 +101,17 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - '266918002' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -118,17 +137,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - '266918002' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -147,6 +155,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -241,6 +262,14 @@ :tests: - :id: au_core_v030_ballot_smokingstatus_patient_code_search_test :file_name: smokingstatus_patient_code_search_test.rb +- :id: au_core_v030_ballot_smokingstatus_category_search_test + :file_name: smokingstatus_category_search_test.rb +- :id: au_core_v030_ballot_smokingstatus_code_search_test + :file_name: smokingstatus_code_search_test.rb +- :id: au_core_v030_ballot_smokingstatus_date_search_test + :file_name: smokingstatus_date_search_test.rb +- :id: au_core_v030_ballot_smokingstatus_status_search_test + :file_name: smokingstatus_status_search_test.rb - :id: au_core_v030_ballot_smokingstatus_patient_search_test :file_name: smokingstatus_patient_search_test.rb - :id: au_core_v030_ballot_smokingstatus_patient_category_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_category_search_test.rb new file mode 100644 index 00000000..0cfa408b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class SmokingstatusCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_smokingstatus_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:smokingstatus_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_code_search_test.rb new file mode 100644 index 00000000..0e00bfab --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class SmokingstatusCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_smokingstatus_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:smokingstatus_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_date_search_test.rb new file mode 100644 index 00000000..0373754e --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class SmokingstatusDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_smokingstatus_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:smokingstatus_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_status_search_test.rb new file mode 100644 index 00000000..9d932e6b --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus/smokingstatus_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class SmokingstatusStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_smokingstatus_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:smokingstatus_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus_group.rb index efdfff7c..1a863178 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/smokingstatus_group.rb @@ -1,4 +1,8 @@ require_relative 'smokingstatus/smokingstatus_patient_code_search_test' +require_relative 'smokingstatus/smokingstatus_category_search_test' +require_relative 'smokingstatus/smokingstatus_code_search_test' +require_relative 'smokingstatus/smokingstatus_date_search_test' +require_relative 'smokingstatus/smokingstatus_status_search_test' require_relative 'smokingstatus/smokingstatus_patient_search_test' require_relative 'smokingstatus/smokingstatus_patient_category_search_test' require_relative 'smokingstatus/smokingstatus_patient_category_date_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_smokingstatus_patient_code_search_test + test from: :au_core_v030_ballot_smokingstatus_category_search_test + test from: :au_core_v030_ballot_smokingstatus_code_search_test + test from: :au_core_v030_ballot_smokingstatus_date_search_test + test from: :au_core_v030_ballot_smokingstatus_status_search_test test from: :au_core_v030_ballot_smokingstatus_patient_search_test test from: :au_core_v030_ballot_smokingstatus_patient_category_search_test test from: :au_core_v030_ballot_smokingstatus_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/summary.md b/lib/au_core_test_kit/generated/v0.3.0-ballot/summary.md index 82c496d9..20f7e5cc 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/summary.md +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/summary.md @@ -144,7 +144,24 @@ Accept: application/fhir+json {test endpoint}/Patient?_id={_id} ``` -### 1.2.2 Search: family (SHOULD) +### 1.2.2 Search: birthdate (MAY) + +**HTTP GET** + +```bash +GET /Patient?birthdate={birthdate} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Patient?birthdate={birthdate} +``` + +### 1.2.3 Search: family (SHOULD) **HTTP GET** @@ -161,7 +178,41 @@ Accept: application/fhir+json {test endpoint}/Patient?family={family} ``` -### 1.2.3 Search: identifier (SHALL) +### 1.2.4 Search: gender (MAY) + +**HTTP GET** + +```bash +GET /Patient?gender={gender} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Patient?gender={gender} +``` + +### 1.2.5 Search: indigenous-status (MAY) + +**HTTP GET** + +```bash +GET /Patient?indigenous-status={indigenous-status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Patient?indigenous-status={indigenous-status} +``` + +### 1.2.6 Search: identifier (SHALL) **HTTP GET** @@ -178,7 +229,7 @@ Accept: application/fhir+json {test endpoint}/Patient?identifier={identifier} ``` -### 1.2.4 Search: name (SHOULD) +### 1.2.7 Search: name (SHOULD) **HTTP GET** @@ -195,7 +246,24 @@ Accept: application/fhir+json {test endpoint}/Patient?name={name} ``` -### 1.2.5 Search: birthdate+family (SHOULD) +### 1.2.8 Search: patient-gender-identity (MAY) + +**HTTP GET** + +```bash +GET /Patient?patient-gender-identity={patient-gender-identity} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Patient?patient-gender-identity={patient-gender-identity} +``` + +### 1.2.9 Search: birthdate+family (SHOULD) **HTTP GET** @@ -212,7 +280,7 @@ Accept: application/fhir+json {test endpoint}/Patient?birthdate={birthdate}&family={family} ``` -### 1.2.6 Search: birthdate+name (SHOULD) +### 1.2.10 Search: birthdate+name (SHOULD) **HTTP GET** @@ -229,7 +297,7 @@ Accept: application/fhir+json {test endpoint}/Patient?birthdate={birthdate}&name={name} ``` -### 1.2.7 Search: family+gender (SHOULD) +### 1.2.11 Search: family+gender (SHOULD) **HTTP GET** @@ -246,7 +314,7 @@ Accept: application/fhir+json {test endpoint}/Patient?family={family}&gender={gender} ``` -### 1.2.8 Search: gender+name (SHOULD) +### 1.2.12 Search: gender+name (SHOULD) **HTTP GET** @@ -370,7 +438,75 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&code={code} ``` -### 1.3.2 Search: patient (SHALL) +### 1.3.2 Search: category (MAY) + +**HTTP GET** + +```bash +GET /Observation?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?category={category} +``` + +### 1.3.3 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Observation?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?code={code} +``` + +### 1.3.4 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Observation?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?date={date} +``` + +### 1.3.5 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Observation?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?status={status} +``` + +### 1.3.6 Search: patient (SHALL) **HTTP GET** @@ -387,7 +523,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient} ``` -### 1.3.3 Search: patient+category (SHALL) +### 1.3.7 Search: patient+category (SHALL) **HTTP GET** @@ -404,7 +540,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category} ``` -### 1.3.4 Search: patient+category+date (SHALL) +### 1.3.8 Search: patient+category+date (SHALL) **HTTP GET** @@ -421,7 +557,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&date={date} ``` -### 1.3.5 Search: patient+category+status (SHALL) +### 1.3.9 Search: patient+category+status (SHALL) **HTTP GET** @@ -438,7 +574,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&status={status} ``` -### 1.3.6 Search: patient+code+date (SHOULD) +### 1.3.10 Search: patient+code+date (SHOULD) **HTTP GET** @@ -562,7 +698,75 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&code={code} ``` -### 1.4.2 Search: patient (SHALL) +### 1.4.2 Search: category (MAY) + +**HTTP GET** + +```bash +GET /Observation?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?category={category} +``` + +### 1.4.3 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Observation?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?code={code} +``` + +### 1.4.4 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Observation?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?date={date} +``` + +### 1.4.5 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Observation?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?status={status} +``` + +### 1.4.6 Search: patient (SHALL) **HTTP GET** @@ -579,7 +783,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient} ``` -### 1.4.3 Search: patient+category (SHALL) +### 1.4.7 Search: patient+category (SHALL) **HTTP GET** @@ -596,7 +800,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category} ``` -### 1.4.4 Search: patient+category+date (SHALL) +### 1.4.8 Search: patient+category+date (SHALL) **HTTP GET** @@ -613,7 +817,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&date={date} ``` -### 1.4.5 Search: patient+category+status (SHALL) +### 1.4.9 Search: patient+category+status (SHALL) **HTTP GET** @@ -630,7 +834,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&status={status} ``` -### 1.4.6 Search: patient+code+date (SHOULD) +### 1.4.10 Search: patient+code+date (SHOULD) **HTTP GET** @@ -754,7 +958,75 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&code={code} ``` -### 1.5.2 Search: patient (SHALL) +### 1.5.2 Search: category (MAY) + +**HTTP GET** + +```bash +GET /Observation?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?category={category} +``` + +### 1.5.3 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Observation?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?code={code} +``` + +### 1.5.4 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Observation?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?date={date} +``` + +### 1.5.5 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Observation?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?status={status} +``` + +### 1.5.6 Search: patient (SHALL) **HTTP GET** @@ -771,7 +1043,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient} ``` -### 1.5.3 Search: patient+category (SHALL) +### 1.5.7 Search: patient+category (SHALL) **HTTP GET** @@ -788,7 +1060,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category} ``` -### 1.5.4 Search: patient+category+date (SHALL) +### 1.5.8 Search: patient+category+date (SHALL) **HTTP GET** @@ -805,7 +1077,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&date={date} ``` -### 1.5.5 Search: patient+category+status (SHALL) +### 1.5.9 Search: patient+category+status (SHALL) **HTTP GET** @@ -822,7 +1094,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&status={status} ``` -### 1.5.6 Search: patient+code+date (SHOULD) +### 1.5.10 Search: patient+code+date (SHOULD) **HTTP GET** @@ -946,12 +1218,12 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category} ``` -### 1.6.2 Search: patient (SHALL) +### 1.6.2 Search: category (MAY) **HTTP GET** ```bash -GET /Observation?patient={patient} HTTP/1.1 +GET /Observation?category={category} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -960,15 +1232,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient} +{test endpoint}/Observation?category={category} ``` -### 1.6.3 Search: patient+category+date (SHALL) +### 1.6.3 Search: code (MAY) **HTTP GET** ```bash -GET /Observation?patient={patient}&category={category}&date={date} HTTP/1.1 +GET /Observation?code={code} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -977,15 +1249,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient}&category={category}&date={date} +{test endpoint}/Observation?code={code} ``` -### 1.6.4 Search: patient+code (SHALL) +### 1.6.4 Search: date (MAY) **HTTP GET** ```bash -GET /Observation?patient={patient}&code={code} HTTP/1.1 +GET /Observation?date={date} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -994,15 +1266,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient}&code={code} +{test endpoint}/Observation?date={date} ``` -### 1.6.5 Search: patient+category+status (SHALL) +### 1.6.5 Search: status (MAY) **HTTP GET** ```bash -GET /Observation?patient={patient}&category={category}&status={status} HTTP/1.1 +GET /Observation?status={status} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -1011,15 +1283,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient}&category={category}&status={status} +{test endpoint}/Observation?status={status} ``` -### 1.6.6 Search: patient+code+date (SHOULD) +### 1.6.6 Search: patient (SHALL) **HTTP GET** ```bash -GET /Observation?patient={patient}&code={code}&date={date} HTTP/1.1 +GET /Observation?patient={patient} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -1028,23 +1300,91 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient}&code={code}&date={date} +{test endpoint}/Observation?patient={patient} ``` +### 1.6.7 Search: patient+category+date (SHALL) +**HTTP GET** -# 1.7 Observation Body Temperature +```bash +GET /Observation?patient={patient}&category={category}&date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` -#### Background +**For browser based calls:** -The AU Core Observation Body Temperature sequence verifies that the system under test is -able to provide correct responses for Observation queries. These queries -must contain resources conforming to the AU Core Body Temperature as -specified in the AU Core v0.3.0-ballot Implementation Guide. +```bash +{test endpoint}/Observation?patient={patient}&category={category}&date={date} +``` -#### Testing Methodology -##### Searching -This test sequence will first perform each required search associated +### 1.6.8 Search: patient+code (SHALL) + +**HTTP GET** + +```bash +GET /Observation?patient={patient}&code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?patient={patient}&code={code} +``` + +### 1.6.9 Search: patient+category+status (SHALL) + +**HTTP GET** + +```bash +GET /Observation?patient={patient}&category={category}&status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?patient={patient}&category={category}&status={status} +``` + +### 1.6.10 Search: patient+code+date (SHOULD) + +**HTTP GET** + +```bash +GET /Observation?patient={patient}&code={code}&date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?patient={patient}&code={code}&date={date} +``` + + + +# 1.7 Observation Body Temperature + +#### Background + +The AU Core Observation Body Temperature sequence verifies that the system under test is +able to provide correct responses for Observation queries. These queries +must contain resources conforming to the AU Core Body Temperature as +specified in the AU Core v0.3.0-ballot Implementation Guide. + +#### Testing Methodology +##### Searching +This test sequence will first perform each required search associated with this resource. This sequence will perform searches with the following parameters: @@ -1138,7 +1478,75 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&code={code} ``` -### 1.7.2 Search: patient (SHALL) +### 1.7.2 Search: category (MAY) + +**HTTP GET** + +```bash +GET /Observation?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?category={category} +``` + +### 1.7.3 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Observation?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?code={code} +``` + +### 1.7.4 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Observation?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?date={date} +``` + +### 1.7.5 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Observation?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?status={status} +``` + +### 1.7.6 Search: patient (SHALL) **HTTP GET** @@ -1155,7 +1563,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient} ``` -### 1.7.3 Search: patient+category (SHALL) +### 1.7.7 Search: patient+category (SHALL) **HTTP GET** @@ -1172,7 +1580,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category} ``` -### 1.7.4 Search: patient+category+date (SHALL) +### 1.7.8 Search: patient+category+date (SHALL) **HTTP GET** @@ -1189,7 +1597,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&date={date} ``` -### 1.7.5 Search: patient+category+status (SHALL) +### 1.7.9 Search: patient+category+status (SHALL) **HTTP GET** @@ -1206,7 +1614,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&status={status} ``` -### 1.7.6 Search: patient+code+date (SHOULD) +### 1.7.10 Search: patient+code+date (SHOULD) **HTTP GET** @@ -1330,7 +1738,75 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&code={code} ``` -### 1.8.2 Search: patient (SHALL) +### 1.8.2 Search: category (MAY) + +**HTTP GET** + +```bash +GET /Observation?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?category={category} +``` + +### 1.8.3 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Observation?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?code={code} +``` + +### 1.8.4 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Observation?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?date={date} +``` + +### 1.8.5 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Observation?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?status={status} +``` + +### 1.8.6 Search: patient (SHALL) **HTTP GET** @@ -1347,7 +1823,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient} ``` -### 1.8.3 Search: patient+category (SHALL) +### 1.8.7 Search: patient+category (SHALL) **HTTP GET** @@ -1364,7 +1840,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category} ``` -### 1.8.4 Search: patient+category+date (SHALL) +### 1.8.8 Search: patient+category+date (SHALL) **HTTP GET** @@ -1381,7 +1857,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&date={date} ``` -### 1.8.5 Search: patient+category+status (SHALL) +### 1.8.9 Search: patient+category+status (SHALL) **HTTP GET** @@ -1398,7 +1874,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&status={status} ``` -### 1.8.6 Search: patient+code+date (SHOULD) +### 1.8.10 Search: patient+code+date (SHOULD) **HTTP GET** @@ -1522,7 +1998,75 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&code={code} ``` -### 1.9.2 Search: patient (SHALL) +### 1.9.2 Search: category (MAY) + +**HTTP GET** + +```bash +GET /Observation?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?category={category} +``` + +### 1.9.3 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Observation?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?code={code} +``` + +### 1.9.4 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Observation?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?date={date} +``` + +### 1.9.5 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Observation?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?status={status} +``` + +### 1.9.6 Search: patient (SHALL) **HTTP GET** @@ -1539,7 +2083,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient} ``` -### 1.9.3 Search: patient+category (SHALL) +### 1.9.7 Search: patient+category (SHALL) **HTTP GET** @@ -1556,7 +2100,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category} ``` -### 1.9.4 Search: patient+category+date (SHALL) +### 1.9.8 Search: patient+category+date (SHALL) **HTTP GET** @@ -1573,7 +2117,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&date={date} ``` -### 1.9.5 Search: patient+category+status (SHALL) +### 1.9.9 Search: patient+category+status (SHALL) **HTTP GET** @@ -1590,7 +2134,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&status={status} ``` -### 1.9.6 Search: patient+code+date (SHOULD) +### 1.9.10 Search: patient+code+date (SHOULD) **HTTP GET** @@ -1714,12 +2258,12 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&code={code} ``` -### 1.10.2 Search: patient (SHALL) +### 1.10.2 Search: category (MAY) **HTTP GET** ```bash -GET /Observation?patient={patient} HTTP/1.1 +GET /Observation?category={category} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -1728,15 +2272,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient} +{test endpoint}/Observation?category={category} ``` -### 1.10.3 Search: patient+category (SHALL) +### 1.10.3 Search: code (MAY) **HTTP GET** ```bash -GET /Observation?patient={patient}&category={category} HTTP/1.1 +GET /Observation?code={code} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -1745,15 +2289,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient}&category={category} +{test endpoint}/Observation?code={code} ``` -### 1.10.4 Search: patient+category+date (SHALL) +### 1.10.4 Search: date (MAY) **HTTP GET** ```bash -GET /Observation?patient={patient}&category={category}&date={date} HTTP/1.1 +GET /Observation?date={date} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -1762,15 +2306,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient}&category={category}&date={date} +{test endpoint}/Observation?date={date} ``` -### 1.10.5 Search: patient+category+status (SHALL) +### 1.10.5 Search: status (MAY) **HTTP GET** ```bash -GET /Observation?patient={patient}&category={category}&status={status} HTTP/1.1 +GET /Observation?status={status} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -1779,15 +2323,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient}&category={category}&status={status} +{test endpoint}/Observation?status={status} ``` -### 1.10.6 Search: patient+code+date (SHOULD) +### 1.10.6 Search: patient (SHALL) **HTTP GET** ```bash -GET /Observation?patient={patient}&code={code}&date={date} HTTP/1.1 +GET /Observation?patient={patient} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -1796,19 +2340,87 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Observation?patient={patient}&code={code}&date={date} +{test endpoint}/Observation?patient={patient} ``` +### 1.10.7 Search: patient+category (SHALL) +**HTTP GET** -# 1.11 Observation Diagnostic Result +```bash +GET /Observation?patient={patient}&category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` -#### Background +**For browser based calls:** -The AU Core Observation Diagnostic Result sequence verifies that the system under test is -able to provide correct responses for Observation queries. These queries -must contain resources conforming to the AU Core Diagnostic Result Observation as -specified in the AU Core v0.3.0-ballot Implementation Guide. +```bash +{test endpoint}/Observation?patient={patient}&category={category} +``` + +### 1.10.8 Search: patient+category+date (SHALL) + +**HTTP GET** + +```bash +GET /Observation?patient={patient}&category={category}&date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?patient={patient}&category={category}&date={date} +``` + +### 1.10.9 Search: patient+category+status (SHALL) + +**HTTP GET** + +```bash +GET /Observation?patient={patient}&category={category}&status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?patient={patient}&category={category}&status={status} +``` + +### 1.10.10 Search: patient+code+date (SHOULD) + +**HTTP GET** + +```bash +GET /Observation?patient={patient}&code={code}&date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?patient={patient}&code={code}&date={date} +``` + + + +# 1.11 Observation Diagnostic Result + +#### Background + +The AU Core Observation Diagnostic Result sequence verifies that the system under test is +able to provide correct responses for Observation queries. These queries +must contain resources conforming to the AU Core Diagnostic Result Observation as +specified in the AU Core v0.3.0-ballot Implementation Guide. #### Testing Methodology ##### Searching @@ -1906,7 +2518,75 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient} ``` -### 1.11.2 Search: patient+category (SHALL) +### 1.11.2 Search: category (MAY) + +**HTTP GET** + +```bash +GET /Observation?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?category={category} +``` + +### 1.11.3 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Observation?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?code={code} +``` + +### 1.11.4 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Observation?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?date={date} +``` + +### 1.11.5 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Observation?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?status={status} +``` + +### 1.11.6 Search: patient+category (SHALL) **HTTP GET** @@ -1923,7 +2603,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category} ``` -### 1.11.3 Search: patient+category+date (SHALL) +### 1.11.7 Search: patient+category+date (SHALL) **HTTP GET** @@ -1940,7 +2620,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&date={date} ``` -### 1.11.4 Search: patient+code (SHALL) +### 1.11.8 Search: patient+code (SHALL) **HTTP GET** @@ -1957,7 +2637,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&code={code} ``` -### 1.11.5 Search: patient+category+status (SHALL) +### 1.11.9 Search: patient+category+status (SHALL) **HTTP GET** @@ -1974,7 +2654,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&status={status} ``` -### 1.11.6 Search: patient+code+date (SHOULD) +### 1.11.10 Search: patient+code+date (SHOULD) **HTTP GET** @@ -2098,7 +2778,75 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&code={code} ``` -### 1.12.2 Search: patient (SHALL) +### 1.12.2 Search: category (MAY) + +**HTTP GET** + +```bash +GET /Observation?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?category={category} +``` + +### 1.12.3 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Observation?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?code={code} +``` + +### 1.12.4 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Observation?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?date={date} +``` + +### 1.12.5 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Observation?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Observation?status={status} +``` + +### 1.12.6 Search: patient (SHALL) **HTTP GET** @@ -2115,7 +2863,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient} ``` -### 1.12.3 Search: patient+category (SHALL) +### 1.12.7 Search: patient+category (SHALL) **HTTP GET** @@ -2132,7 +2880,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category} ``` -### 1.12.4 Search: patient+category+date (SHALL) +### 1.12.8 Search: patient+category+date (SHALL) **HTTP GET** @@ -2149,7 +2897,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&date={date} ``` -### 1.12.5 Search: patient+category+status (SHALL) +### 1.12.9 Search: patient+category+status (SHALL) **HTTP GET** @@ -2166,7 +2914,7 @@ Accept: application/fhir+json {test endpoint}/Observation?patient={patient}&category={category}&status={status} ``` -### 1.12.6 Search: patient+code+date (SHOULD) +### 1.12.10 Search: patient+code+date (SHOULD) **HTTP GET** @@ -2286,7 +3034,24 @@ Accept: application/fhir+json {test endpoint}/AllergyIntolerance?patient={patient} ``` -### 1.13.2 Search: patient+clinical-status (SHOULD) +### 1.13.2 Search: clinical-status (MAY) + +**HTTP GET** + +```bash +GET /AllergyIntolerance?clinical-status={clinical-status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/AllergyIntolerance?clinical-status={clinical-status} +``` + +### 1.13.3 Search: patient+clinical-status (SHOULD) **HTTP GET** @@ -2408,7 +3173,75 @@ Accept: application/fhir+json {test endpoint}/Condition?patient={patient} ``` -### 1.14.2 Search: patient+category (SHALL) +### 1.14.2 Search: category (MAY) + +**HTTP GET** + +```bash +GET /Condition?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Condition?category={category} +``` + +### 1.14.3 Search: clinical-status (MAY) + +**HTTP GET** + +```bash +GET /Condition?clinical-status={clinical-status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Condition?clinical-status={clinical-status} +``` + +### 1.14.4 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Condition?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Condition?code={code} +``` + +### 1.14.5 Search: onset-date (MAY) + +**HTTP GET** + +```bash +GET /Condition?onset-date={onset-date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Condition?onset-date={onset-date} +``` + +### 1.14.6 Search: patient+category (SHALL) **HTTP GET** @@ -2425,7 +3258,7 @@ Accept: application/fhir+json {test endpoint}/Condition?patient={patient}&category={category} ``` -### 1.14.3 Search: patient+clinical-status (SHALL) +### 1.14.7 Search: patient+clinical-status (SHALL) **HTTP GET** @@ -2442,7 +3275,7 @@ Accept: application/fhir+json {test endpoint}/Condition?patient={patient}&clinical-status={clinical-status} ``` -### 1.14.4 Search: patient+category+clinical-status (SHOULD) +### 1.14.8 Search: patient+category+clinical-status (SHOULD) **HTTP GET** @@ -2459,7 +3292,7 @@ Accept: application/fhir+json {test endpoint}/Condition?patient={patient}&category={category}&clinical-status={clinical-status} ``` -### 1.14.5 Search: patient+code (SHOULD) +### 1.14.9 Search: patient+code (SHOULD) **HTTP GET** @@ -2476,7 +3309,7 @@ Accept: application/fhir+json {test endpoint}/Condition?patient={patient}&code={code} ``` -### 1.14.6 Search: patient+onset-date (SHOULD) +### 1.14.10 Search: patient+onset-date (SHOULD) **HTTP GET** @@ -2597,12 +3430,12 @@ Accept: application/fhir+json {test endpoint}/Encounter?patient={patient} ``` -### 1.15.2 Search: date+patient (SHALL) +### 1.15.2 Search: class (MAY) **HTTP GET** ```bash -GET /Encounter?date={date}&patient={patient} HTTP/1.1 +GET /Encounter?class={class} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -2611,15 +3444,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Encounter?date={date}&patient={patient} +{test endpoint}/Encounter?class={class} ``` -### 1.15.3 Search: class+patient (SHOULD) +### 1.15.3 Search: date (MAY) **HTTP GET** ```bash -GET /Encounter?class={class}&patient={patient} HTTP/1.1 +GET /Encounter?date={date} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -2628,15 +3461,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Encounter?class={class}&patient={patient} +{test endpoint}/Encounter?date={date} ``` -### 1.15.4 Search: patient+discharge-disposition (SHOULD) +### 1.15.4 Search: discharge-disposition (MAY) **HTTP GET** ```bash -GET /Encounter?patient={patient}&discharge-disposition={discharge-disposition} HTTP/1.1 +GET /Encounter?discharge-disposition={discharge-disposition} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -2645,15 +3478,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Encounter?patient={patient}&discharge-disposition={discharge-disposition} +{test endpoint}/Encounter?discharge-disposition={discharge-disposition} ``` -### 1.15.5 Search: patient+location (SHOULD) +### 1.15.5 Search: identifier (MAY) **HTTP GET** ```bash -GET /Encounter?patient={patient}&location={location} HTTP/1.1 +GET /Encounter?identifier={identifier} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -2662,15 +3495,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Encounter?patient={patient}&location={location} +{test endpoint}/Encounter?identifier={identifier} ``` -### 1.15.6 Search: patient+status (SHOULD) +### 1.15.6 Search: location (MAY) **HTTP GET** ```bash -GET /Encounter?patient={patient}&status={status} HTTP/1.1 +GET /Encounter?location={location} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -2679,15 +3512,15 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Encounter?patient={patient}&status={status} +{test endpoint}/Encounter?location={location} ``` -### 1.15.7 Search: patient+type (SHOULD) +### 1.15.7 Search: status (MAY) **HTTP GET** ```bash -GET /Encounter?patient={patient}&type={type} HTTP/1.1 +GET /Encounter?status={status} HTTP/1.1 User-Agent: {agent} Host: {host} Accept: application/fhir+json @@ -2696,7 +3529,126 @@ Accept: application/fhir+json **For browser based calls:** ```bash -{test endpoint}/Encounter?patient={patient}&type={type} +{test endpoint}/Encounter?status={status} +``` + +### 1.15.8 Search: type (MAY) + +**HTTP GET** + +```bash +GET /Encounter?type={type} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Encounter?type={type} +``` + +### 1.15.9 Search: date+patient (SHALL) + +**HTTP GET** + +```bash +GET /Encounter?date={date}&patient={patient} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Encounter?date={date}&patient={patient} +``` + +### 1.15.10 Search: class+patient (SHOULD) + +**HTTP GET** + +```bash +GET /Encounter?class={class}&patient={patient} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Encounter?class={class}&patient={patient} +``` + +### 1.15.11 Search: patient+discharge-disposition (SHOULD) + +**HTTP GET** + +```bash +GET /Encounter?patient={patient}&discharge-disposition={discharge-disposition} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Encounter?patient={patient}&discharge-disposition={discharge-disposition} +``` + +### 1.15.12 Search: patient+location (SHOULD) + +**HTTP GET** + +```bash +GET /Encounter?patient={patient}&location={location} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Encounter?patient={patient}&location={location} +``` + +### 1.15.13 Search: patient+status (SHOULD) + +**HTTP GET** + +```bash +GET /Encounter?patient={patient}&status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Encounter?patient={patient}&status={status} +``` + +### 1.15.14 Search: patient+type (SHOULD) + +**HTTP GET** + +```bash +GET /Encounter?patient={patient}&type={type} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Encounter?patient={patient}&type={type} ``` @@ -2803,7 +3755,58 @@ Accept: application/fhir+json {test endpoint}/Immunization?patient={patient} ``` -### 1.16.2 Search: patient+status (SHALL) +### 1.16.2 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Immunization?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Immunization?date={date} +``` + +### 1.16.3 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Immunization?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Immunization?status={status} +``` + +### 1.16.4 Search: vaccine-code (MAY) + +**HTTP GET** + +```bash +GET /Immunization?vaccine-code={vaccine-code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Immunization?vaccine-code={vaccine-code} +``` + +### 1.16.5 Search: patient+status (SHALL) **HTTP GET** @@ -2820,7 +3823,7 @@ Accept: application/fhir+json {test endpoint}/Immunization?patient={patient}&status={status} ``` -### 1.16.3 Search: patient+date (SHOULD) +### 1.16.6 Search: patient+date (SHOULD) **HTTP GET** @@ -2837,6 +3840,23 @@ Accept: application/fhir+json {test endpoint}/Immunization?patient={patient}&date={date} ``` +### 1.16.7 Search: patient+vaccine-code (MAY) + +**HTTP GET** + +```bash +GET /Immunization?patient={patient}&vaccine-code={vaccine-code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Immunization?patient={patient}&vaccine-code={vaccine-code} +``` + # 1.17 MedicationRequest @@ -2979,7 +3999,75 @@ Accept: application/fhir+json {test endpoint}/MedicationRequest?identifier={identifier} ``` -### 1.17.4 Search: patient+intent (SHALL) +### 1.17.4 Search: category (MAY) + +**HTTP GET** + +```bash +GET /MedicationRequest?category={category} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/MedicationRequest?category={category} +``` + +### 1.17.5 Search: authoredon (MAY) + +**HTTP GET** + +```bash +GET /MedicationRequest?authoredon={authoredon} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/MedicationRequest?authoredon={authoredon} +``` + +### 1.17.6 Search: intent (MAY) + +**HTTP GET** + +```bash +GET /MedicationRequest?intent={intent} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/MedicationRequest?intent={intent} +``` + +### 1.17.7 Search: status (MAY) + +**HTTP GET** + +```bash +GET /MedicationRequest?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/MedicationRequest?status={status} +``` + +### 1.17.8 Search: patient+intent (SHALL) **HTTP GET** @@ -2996,7 +4084,7 @@ Accept: application/fhir+json {test endpoint}/MedicationRequest?patient={patient}&intent={intent} ``` -### 1.17.5 Search: patient+intent+status (SHALL) +### 1.17.9 Search: patient+intent+status (SHALL) **HTTP GET** @@ -3013,7 +4101,7 @@ Accept: application/fhir+json {test endpoint}/MedicationRequest?patient={patient}&intent={intent}&status={status} ``` -### 1.17.6 Search: patient+intent+authoredon (SHALL) +### 1.17.10 Search: patient+intent+authoredon (SHALL) **HTTP GET** @@ -3134,7 +4222,41 @@ Accept: application/fhir+json {test endpoint}/MedicationStatement?patient={patient} ``` -### 1.18.2 Search: patient+status (SHALL) +### 1.18.2 Search: effective (MAY) + +**HTTP GET** + +```bash +GET /MedicationStatement?effective={effective} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/MedicationStatement?effective={effective} +``` + +### 1.18.3 Search: status (MAY) + +**HTTP GET** + +```bash +GET /MedicationStatement?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/MedicationStatement?status={status} +``` + +### 1.18.4 Search: patient+status (SHALL) **HTTP GET** @@ -3151,7 +4273,7 @@ Accept: application/fhir+json {test endpoint}/MedicationStatement?patient={patient}&status={status} ``` -### 1.18.3 Search: patient+effective (SHOULD) +### 1.18.5 Search: patient+effective (SHOULD) **HTTP GET** @@ -3272,7 +4394,58 @@ Accept: application/fhir+json {test endpoint}/Procedure?patient={patient} ``` -### 1.19.2 Search: patient+date (SHALL) +### 1.19.2 Search: code (MAY) + +**HTTP GET** + +```bash +GET /Procedure?code={code} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Procedure?code={code} +``` + +### 1.19.3 Search: date (MAY) + +**HTTP GET** + +```bash +GET /Procedure?date={date} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Procedure?date={date} +``` + +### 1.19.4 Search: status (MAY) + +**HTTP GET** + +```bash +GET /Procedure?status={status} HTTP/1.1 +User-Agent: {agent} +Host: {host} +Accept: application/fhir+json +``` + +**For browser based calls:** + +```bash +{test endpoint}/Procedure?status={status} +``` + +### 1.19.5 Search: patient+date (SHALL) **HTTP GET** @@ -3289,7 +4462,7 @@ Accept: application/fhir+json {test endpoint}/Procedure?patient={patient}&date={date} ``` -### 1.19.3 Search: patient+code+date (SHOULD) +### 1.19.6 Search: patient+code+date (SHOULD) **HTTP GET** @@ -3306,7 +4479,7 @@ Accept: application/fhir+json {test endpoint}/Procedure?patient={patient}&code={code}&date={date} ``` -### 1.19.4 Search: patient+status (SHOULD) +### 1.19.7 Search: patient+status (SHOULD) **HTTP GET** diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/metadata.yml b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/metadata.yml index 94b08b1a..c199ecbb 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/metadata.yml +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/metadata.yml @@ -35,6 +35,27 @@ - code :names_not_must_support_or_mandatory: [] :must_support_or_mandatory: true +- :names: + - category + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - code + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true +- :names: + - date + :expectation: MAY + :names_not_must_support_or_mandatory: + - date + :must_support_or_mandatory: false +- :names: + - status + :expectation: MAY + :names_not_must_support_or_mandatory: [] + :must_support_or_mandatory: true - :names: - patient :expectation: SHALL @@ -70,19 +91,6 @@ - date :must_support_or_mandatory: false :search_definitions: - :patient: - :paths: - - subject - :full_paths: - - Observation.subject - :comparators: {} - :values: [] - :type: Reference - :contains_multiple: false - :multiple_or: MAY - :chain: - - :chain: identifier - :expectation: SHOULD :category: :paths: - category @@ -94,6 +102,18 @@ :type: CodeableConcept :contains_multiple: true :multiple_or: MAY + :code: + :paths: + - code + :full_paths: + - Observation.code + :comparators: {} + :values: + - 8280-0 + - '276361009' + :type: CodeableConcept + :contains_multiple: false + :multiple_or: MAY :date: :paths: - effectiveDateTime @@ -119,18 +139,6 @@ :type: date :contains_multiple: false :multiple_or: MAY - :code: - :paths: - - code - :full_paths: - - Observation.code - :comparators: {} - :values: - - 8280-0 - - '276361009' - :type: CodeableConcept - :contains_multiple: false - :multiple_or: MAY :status: :paths: - status @@ -149,6 +157,19 @@ :type: code :contains_multiple: false :multiple_or: MAY + :patient: + :paths: + - subject + :full_paths: + - Observation.subject + :comparators: {} + :values: [] + :type: Reference + :contains_multiple: false + :multiple_or: MAY + :chain: + - :chain: identifier + :expectation: SHOULD :include_params: [] :revincludes: - Provenance:target @@ -283,6 +304,14 @@ :tests: - :id: au_core_v030_ballot_waistcircum_patient_code_search_test :file_name: waistcircum_patient_code_search_test.rb +- :id: au_core_v030_ballot_waistcircum_category_search_test + :file_name: waistcircum_category_search_test.rb +- :id: au_core_v030_ballot_waistcircum_code_search_test + :file_name: waistcircum_code_search_test.rb +- :id: au_core_v030_ballot_waistcircum_date_search_test + :file_name: waistcircum_date_search_test.rb +- :id: au_core_v030_ballot_waistcircum_status_search_test + :file_name: waistcircum_status_search_test.rb - :id: au_core_v030_ballot_waistcircum_patient_search_test :file_name: waistcircum_patient_search_test.rb - :id: au_core_v030_ballot_waistcircum_patient_category_search_test diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_category_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_category_search_test.rb new file mode 100644 index 00000000..0def5dbc --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_category_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class WaistcircumCategorySearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by category' + description %( +A server MAY support searching by +category on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_waistcircum_category_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['category'], + possible_status_search: true, + token_search_params: ['category'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:waistcircum_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_code_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_code_search_test.rb new file mode 100644 index 00000000..896120af --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_code_search_test.rb @@ -0,0 +1,45 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class WaistcircumCodeSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by code' + description %( +A server MAY support searching by +code on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_waistcircum_code_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['code'], + possible_status_search: true, + token_search_params: ['code'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:waistcircum_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_date_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_date_search_test.rb new file mode 100644 index 00000000..7be3d9ce --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_date_search_test.rb @@ -0,0 +1,44 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class WaistcircumDateSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by date' + description %( +A server MAY support searching by +date on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_waistcircum_date_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['date'], + possible_status_search: true + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:waistcircum_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_status_search_test.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_status_search_test.rb new file mode 100644 index 00000000..6bee8d26 --- /dev/null +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum/waistcircum_status_search_test.rb @@ -0,0 +1,43 @@ +require_relative '../../../search_test' +require_relative '../../../generator/group_metadata' + +module AUCoreTestKit + module AUCoreV030_BALLOT + class WaistcircumStatusSearchTest < Inferno::Test + include AUCoreTestKit::SearchTest + + title 'Server returns valid results for Observation search by status' + description %( +A server MAY support searching by +status on the Observation resource. This test +will pass if resources are returned and match the search criteria. If +none are returned, the test is skipped. + +[AU Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) + + ) + + id :au_core_v030_ballot_waistcircum_status_search_test + optional + + def self.properties + @properties ||= SearchTestProperties.new( + resource_type: 'Observation', + search_param_names: ['status'] + ) + end + + def self.metadata + @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) + end + + def scratch_resources + scratch[:waistcircum_resources] ||= {} + end + + run do + run_search_test + end + end + end +end diff --git a/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum_group.rb b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum_group.rb index 3a1b30cb..497e5e8a 100644 --- a/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum_group.rb +++ b/lib/au_core_test_kit/generated/v0.3.0-ballot/waistcircum_group.rb @@ -1,4 +1,8 @@ require_relative 'waistcircum/waistcircum_patient_code_search_test' +require_relative 'waistcircum/waistcircum_category_search_test' +require_relative 'waistcircum/waistcircum_code_search_test' +require_relative 'waistcircum/waistcircum_date_search_test' +require_relative 'waistcircum/waistcircum_status_search_test' require_relative 'waistcircum/waistcircum_patient_search_test' require_relative 'waistcircum/waistcircum_patient_category_search_test' require_relative 'waistcircum/waistcircum_patient_category_date_search_test' @@ -85,6 +89,10 @@ def self.metadata end test from: :au_core_v030_ballot_waistcircum_patient_code_search_test + test from: :au_core_v030_ballot_waistcircum_category_search_test + test from: :au_core_v030_ballot_waistcircum_code_search_test + test from: :au_core_v030_ballot_waistcircum_date_search_test + test from: :au_core_v030_ballot_waistcircum_status_search_test test from: :au_core_v030_ballot_waistcircum_patient_search_test test from: :au_core_v030_ballot_waistcircum_patient_category_search_test test from: :au_core_v030_ballot_waistcircum_patient_category_date_search_test diff --git a/lib/au_core_test_kit/generator/search_metadata_extractor.rb b/lib/au_core_test_kit/generator/search_metadata_extractor.rb index 793c950f..316088a1 100644 --- a/lib/au_core_test_kit/generator/search_metadata_extractor.rb +++ b/lib/au_core_test_kit/generator/search_metadata_extractor.rb @@ -31,7 +31,7 @@ def basic_searches return [] if no_search_params? resource_capabilities.searchParam - .select { |search_param| ['SHALL', 'SHOULD'].include? conformance_expectation(search_param) } + .select { |search_param| ['SHALL', 'SHOULD', 'MAY'].include? conformance_expectation(search_param) } .map do |search_param| { names: [search_param.name], @@ -49,7 +49,7 @@ def combo_searches search_extensions .select { |extension| extension.url == COMBO_EXTENSION_URL } - .select { |extension| ['SHALL', 'SHOULD'].include? conformance_expectation(extension) } + .select { |extension| ['SHALL', 'SHOULD', 'MAY'].include? conformance_expectation(extension) } .map do |extension| names = extension.extension.select { |param| param.valueString.present? }.map(&:valueString) { diff --git a/lib/au_core_test_kit/igs/search-params.json b/lib/au_core_test_kit/igs/search-params.json index 6352953a..4c3eda7b 100644 --- a/lib/au_core_test_kit/igs/search-params.json +++ b/lib/au_core_test_kit/igs/search-params.json @@ -6,6 +6,168 @@ }, "type": "collection", "entry": [ + { + "resource": { + "resourceType": "SearchParameter", + "id": "patient-gender-identity", + "text": { + "status": "generated", + "div": "

PatientGenderIdentity TU

Parameter patient-gender-identity:token

This search parameter returns patients with the genderIdentity extension matching the specified code.

\n
ResourcePatient
ExpressionPatient.extension('http://hl7.org/fhir/StructureDefinition/patient-genderIdentity').value
Multiples
  • multipleAnd: The parameter may repeat in order to specify multiple values that must all be true
  • multipleOr: The parameter may have multiple values (separated by comma) where at least one must be true
" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", + "valueInteger": 0 + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", + "valueCode": "trial-use", + "_valueCode": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom", + "valueCanonical": "http://hl7.org.au/fhir/ImplementationGuide/hl7.fhir.au.base" + } + ] + } + } + ], + "url": "http://hl7.org.au/fhir/SearchParameter/patient-gender-identity", + "version": "4.1.3", + "name": "PatientGenderIdentity", + "status": "draft", + "date": "2024-02-12T22:01:11+00:00", + "publisher": "HL7 Australia", + "contact": [ + { + "name": "HL7 Australia FHIR Working Group", + "telecom": [ + { + "system": "url", + "value": "https://confluence.hl7.org/display/HAFWG", + "use": "work" + } + ] + } + ], + "description": "This search parameter returns patients with the genderIdentity extension matching the specified code.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "AU" + } + ] + } + ], + "code": "patient-gender-identity", + "base": [ + "Patient" + ], + "type": "token", + "expression": "Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-genderIdentity').value", + "multipleOr": true, + "_multipleOr": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ] + }, + "multipleAnd": true, + "_multipleAnd": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ] + } + } + }, + { + "resource": { + "resourceType": "SearchParameter", + "id": "indigenous-status", + "text": { + "status": "generated", + "div": "

AustralianIndigenousStatus TU

Parameter indigenous-status:token

This search parameter returns patients with an Australian Indigenous Status extension matching the specified code.

\n
ResourcePatient
ExpressionPatient.extension('http://hl7.org.au/fhir/StructureDefinition/indigenous-status').value
Multiples
  • multipleAnd: The parameter may repeat in order to specify multiple values that must all be true
  • multipleOr: The parameter may have multiple values (separated by comma) where at least one must be true
" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", + "valueInteger": 0 + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", + "valueCode": "trial-use", + "_valueCode": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom", + "valueCanonical": "http://hl7.org.au/fhir/ImplementationGuide/hl7.fhir.au.base" + } + ] + } + } + ], + "url": "http://hl7.org.au/fhir/SearchParameter/indigenous-status", + "version": "4.2.1-ci-build", + "name": "AustralianIndigenousStatus", + "status": "draft", + "date": "2024-03-17T23:48:39+00:00", + "publisher": "HL7 Australia", + "contact": [ + { + "name": "HL7 Australia FHIR Working Group", + "telecom": [ + { + "system": "url", + "value": "https://confluence.hl7.org/display/HAFWG", + "use": "work" + } + ] + } + ], + "description": "This search parameter returns patients with an Australian Indigenous Status extension matching the specified code.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "AU" + } + ] + } + ], + "code": "indigenous-status", + "base": [ + "Patient" + ], + "type": "token", + "expression": "Patient.extension('http://hl7.org.au/fhir/StructureDefinition/indigenous-status').value", + "multipleOr": true, + "_multipleOr": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ] + }, + "multipleAnd": true, + "_multipleAnd": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ] + } + } + }, { "fullUrl": "http://hl7.org/fhir/SearchParameter/DomainResource-text", "resource": {