plan_executor 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +44 -0
- data/.simplecov +16 -0
- data/.travis.yml +13 -0
- data/Gemfile +26 -0
- data/Gemfile.lock +197 -0
- data/LICENSE +201 -0
- data/README.md +126 -0
- data/Rakefile +25 -0
- data/fixtures/daf/conformance-daf-query-responder.xml +1471 -0
- data/fixtures/diagnostic_order/do-100.xml +64 -0
- data/fixtures/diagnostic_order/do-200.xml +121 -0
- data/fixtures/diagnostic_order/do-300.xml +91 -0
- data/fixtures/diagnostic_order/do-400.xml +88 -0
- data/fixtures/diagnostic_report/dr-100.xml +96 -0
- data/fixtures/diagnostic_report/dr-200.xml +125 -0
- data/fixtures/diagnostic_report/dr-300.xml +132 -0
- data/fixtures/diagnostic_report/dr-400.xml +121 -0
- data/fixtures/financial/claim-example-average.xml +168 -0
- data/fixtures/financial/claim-example-simple.xml +67 -0
- data/fixtures/observation/obs-100.xml +58 -0
- data/fixtures/observation/obs-101.xml +58 -0
- data/fixtures/observation/obs-200.xml +125 -0
- data/fixtures/observation/obs-300.xml +106 -0
- data/fixtures/observation/obs-301.xml +106 -0
- data/fixtures/observation/obs-302.xml +106 -0
- data/fixtures/observation/obs-303.xml +106 -0
- data/fixtures/observation/obs-304.xml +106 -0
- data/fixtures/observation/obs-400.xml +87 -0
- data/fixtures/observation/obs-401.xml +95 -0
- data/fixtures/observation/obs-402.xml +95 -0
- data/fixtures/observation/obs-403.xml +84 -0
- data/fixtures/observation/obs-404.xml +84 -0
- data/fixtures/observation/obs-405.xml +83 -0
- data/fixtures/observation/obs-406.xml +83 -0
- data/fixtures/observation/obs-407.xml +70 -0
- data/fixtures/observation/obs-408.xml +84 -0
- data/fixtures/observation/obs-uslab-example5.xml +102 -0
- data/fixtures/order/order-100.xml +61 -0
- data/fixtures/order/order-200.xml +61 -0
- data/fixtures/order/order-300.xml +61 -0
- data/fixtures/order/order-400.xml +61 -0
- data/fixtures/order_response/ordresp-100.xml +79 -0
- data/fixtures/order_response/ordresp-110.xml +79 -0
- data/fixtures/order_response/ordresp-200.xml +79 -0
- data/fixtures/order_response/ordresp-210.xml +79 -0
- data/fixtures/order_response/ordresp-300.xml +79 -0
- data/fixtures/order_response/ordresp-310.xml +79 -0
- data/fixtures/order_response/ordresp-400.xml +79 -0
- data/fixtures/order_response/ordresp-410.xml +79 -0
- data/fixtures/organization/org-uslab-example3.xml +49 -0
- data/fixtures/patient/patient-example-updated.xml +140 -0
- data/fixtures/patient/patient-example-us-extensions(us01).xml +81 -0
- data/fixtures/patient/patient-example.xml +132 -0
- data/fixtures/patient/patient-format-example.xml +101 -0
- data/fixtures/patient/patient-minimal.xml +9 -0
- data/fixtures/patient/patient-uslab-example1.xml +44 -0
- data/fixtures/practitioner/pract-uslab-example1.xml +18 -0
- data/fixtures/practitioner/pract-uslab-example3.xml +36 -0
- data/fixtures/record/condition-example-f201-fever.xml +63 -0
- data/fixtures/record/condition-example-f205-infection.xml +20 -0
- data/fixtures/record/diagnosticreport-example-f201-brainct.xml +18 -0
- data/fixtures/record/encounter-example-f201-20130404.xml +17 -0
- data/fixtures/record/encounter-example-f202-20130128.xml +17 -0
- data/fixtures/record/observation-example-f202-temperature.xml +60 -0
- data/fixtures/record/organization-example-f201-aumc.xml +5 -0
- data/fixtures/record/organization-example-f203-bumc.xml +5 -0
- data/fixtures/record/patient-example-f201-roel.xml +16 -0
- data/fixtures/record/practitioner-example-f201-ab.xml +14 -0
- data/fixtures/record/procedure-example-f201-tpf.xml +23 -0
- data/fixtures/scheduling/appointment-simple.xml +24 -0
- data/fixtures/scheduling/appointmentresponse-patient-simple.xml +12 -0
- data/fixtures/scheduling/appointmentresponse-practitioner-simple.xml +12 -0
- data/fixtures/scheduling/practitioner-simple.xml +10 -0
- data/fixtures/scheduling/schedule-simple.xml +12 -0
- data/fixtures/scheduling/slot-simple.xml +10 -0
- data/fixtures/specimen/spec-100.xml +65 -0
- data/fixtures/specimen/spec-400.xml +70 -0
- data/fixtures/specimen/spec-uslab-example1.xml +82 -0
- data/fixtures/validation/observation.profile.xml +2045 -0
- data/fixtures/validation/observations/observation-example(example).xml +50 -0
- data/lib/FHIR_structure.json +529 -0
- data/lib/daf_resource_generator.rb +94 -0
- data/lib/data/fhir_structure.rb +8 -0
- data/lib/data/resources.rb +138 -0
- data/lib/executor.rb +56 -0
- data/lib/ext/client.rb +27 -0
- data/lib/ext/client_reply.rb +19 -0
- data/lib/plan_executor.rb +31 -0
- data/lib/resource_generator.rb +656 -0
- data/lib/tasks/tasks.rake +329 -0
- data/lib/tasks/templates/summary.html.erb +163 -0
- data/lib/test_result.rb +69 -0
- data/lib/tests/assertions.rb +261 -0
- data/lib/tests/base_test.rb +117 -0
- data/lib/tests/suites/argonaut_resprint_1_test.rb +260 -0
- data/lib/tests/suites/argonaut_resprint_2_test.rb +369 -0
- data/lib/tests/suites/argonaut_resprint_3_test.rb +309 -0
- data/lib/tests/suites/argonaut_sprint_1_test.rb +187 -0
- data/lib/tests/suites/argonaut_sprint_2_test.rb +115 -0
- data/lib/tests/suites/argonaut_sprint_3_test.rb +208 -0
- data/lib/tests/suites/argonaut_sprint_4_test.rb +335 -0
- data/lib/tests/suites/argonaut_sprint_5_test.rb +196 -0
- data/lib/tests/suites/argonaut_sprint_6_test.rb +243 -0
- data/lib/tests/suites/argonaut_sprint_7_test.rb +161 -0
- data/lib/tests/suites/base_suite.rb +116 -0
- data/lib/tests/suites/connectathon_audit_track.rb +354 -0
- data/lib/tests/suites/connectathon_fetch_patient_record.rb +443 -0
- data/lib/tests/suites/connectathon_financial_track.rb +380 -0
- data/lib/tests/suites/connectathon_lab_order_track.rb +239 -0
- data/lib/tests/suites/connectathon_patient_track.rb +364 -0
- data/lib/tests/suites/connectathon_profile_validation.rb +101 -0
- data/lib/tests/suites/connectathon_scheduling_track.rb +266 -0
- data/lib/tests/suites/connectathon_terminology_track.rb +242 -0
- data/lib/tests/suites/daf_profiles_test.rb +431 -0
- data/lib/tests/suites/format_test.rb +453 -0
- data/lib/tests/suites/history_test.rb +311 -0
- data/lib/tests/suites/read_test.rb +104 -0
- data/lib/tests/suites/resource_test.rb +553 -0
- data/lib/tests/suites/search_test.rb +219 -0
- data/lib/tests/suites/search_test_robust.rb +172 -0
- data/lib/tests/suites/sprinkler_search_test.rb +660 -0
- data/lib/tests/suites/suite_engine.rb +114 -0
- data/lib/tests/suites/transaction_test.rb +571 -0
- data/lib/tests/testscripts/base_testscript.rb +480 -0
- data/lib/tests/testscripts/testscript_engine.rb +81 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Client Assigned Id/track1-patient-base-client-id-json.xml +348 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Client Assigned Id/track1-patient-base-client-id-xml.xml +348 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Client Assigned Id/track1-patient-bonus-client-id-json.xml +420 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Client Assigned Id/track1-patient-bonus-client-id-xml.xml +420 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/README.html +68 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Server Assigned Id/track1-patient-base-server-id-json.xml +352 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Server Assigned Id/track1-patient-base-server-id-xml.xml +352 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Server Assigned Id/track1-patient-bonus-server-id-json.xml +421 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Server Assigned Id/track1-patient-bonus-server-id-xml.xml +421 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/conformance/PatientConformance.xml +34 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-create-PeterChalmers-min.json +45 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-create-PeterChalmers-min.xml +26 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-create-PeterChalmers.json +100 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-create-PeterChalmers.xml +102 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-create-bonus-PeterChalmers-min.json +53 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-create-bonus-PeterChalmers-min.xml +30 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-create-bonus-PeterChalmers.json +108 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-create-bonus-PeterChalmers.xml +108 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-PeterChalmers-min.json +45 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-PeterChalmers-min.xml +26 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-PeterChalmers.json +100 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-PeterChalmers.xml +102 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-bonus1-PeterChalmers-min.json +53 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-bonus1-PeterChalmers-min.xml +30 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-bonus1-PeterChalmers.json +108 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-bonus1-PeterChalmers.xml +107 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-bonus2-PeterChalmers-min.json +53 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-bonus2-PeterChalmers-min.xml +31 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-bonus2-PeterChalmers.json +108 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/_reference/resources/patient-update-bonus2-PeterChalmers.xml +106 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/C-CDA_R2-1_CCD-ussg.xml +3414 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-A1-empty-on-instance.xml +9 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-A2-empty-by-ref.xml +15 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-A3-empty-by-identifier.xml +13 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-A4-empty-by-contained.xml +15 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-B1-CCDA-on-instance.xml +15 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-B2-CCDA-by-ref.xml +21 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-B3-CCDA-by-identifier.xml +19 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-B4-CCDA-by-contained.xml +21 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/questionnaire-sdc-profile-example-ussg-fht.xml +3905 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/questionnaireresponse-expected-ussg-fht-CCDA.xml +190 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/questionnaireresponse-expected-ussg-fht-empty.xml +177 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/track11-sdc-prepop-xml.xml +142 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Expand/Client Assigned Id/track2-ts-suite1-expand-client-id.xml +925 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Expand/Client Assigned Id/track2-ts-suite2-expand-filter-client-id.xml +930 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Expand/Server Assigned Id/track2-ts-suite1-expand-server-id.xml +953 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Expand/Server Assigned Id/track2-ts-suite2-expand-filter-server-id.xml +958 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Lookup/track2-ts-suite5-loinc-lookup-xml.xml +224 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Lookup/track2-ts-suite5-snomed-lookup-xml.xml +224 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/README.html +85 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Translate/track2-ts-suite6-translate-xml.xml +224 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Validate-code/Client Assigned Id/track2-ts-suite3-validate-code-client-id.xml +1807 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Validate-code/Client Assigned Id/track2-ts-suite4-validate-code-client-id.xml +714 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Validate-code/Server Assigned Id/track2-ts-suite3-validate-code-server-id.xml +1835 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Validate-code/Server Assigned Id/track2-ts-suite4-validate-code-server-id.xml +742 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ConceptMapSuite6Conformance.xml +11 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite1Conformance.xml +17 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite2Conformance.xml +17 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite3Conformance.xml +14 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite4Conformance.xml +14 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite5Conformance.xml +11 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-2-a.xml +11 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-2-b.xml +11 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-3-a.xml +13 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-3-b.xml +13 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-4-a.xml +15 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-4-b.xml +15 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/lookup-loinc-input-5-2.xml +10 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/lookup-loinc-input-5-3.xml +11 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/lookup-snomed-input-5-2.xml +10 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/lookup-snomed-input-5-3.xml +11 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/translate-conceptmap-input-6-2.xml +14 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/translate-conceptmap-input-6-3.xml +15 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-1-expand-min.xml +47 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-1-filter-min.xml +23 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-2-expand-min.xml +132 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-2-filter-min.xml +38 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-3-expand-min.xml +252 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-3-filter-min.xml +58 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-4-expand-min.xml +57 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-4-filter-min.xml +28 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-1-expand-min.xml +347 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-1-filter-min.xml +33 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-2-expand-min.xml +637 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-2-filter-min.xml +33 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-3-filter-min.xml +58 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/lookup-loinc-min.xml +11 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/lookup-snomed-min.xml +11 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/suite3-invalid-min.xml +10 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/suite3-valid-min.xml +7 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/suite4-invalid-min.xml +10 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/suite4-valid-min.xml +7 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/translate-conceptmap-min.xml +17 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-1.xml +55 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-2.xml +122 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-3.xml +222 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-4.xml +65 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/intensional-case-1.xml +31 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/intensional-case-2.xml +31 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/intensional-case-3.xml +31 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/translate-conceptmap-case-1.xml +145 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/conformance/DecisionSupportServiceModule-Evaluate.xml +17 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-incomplete-request-payload.xml +26 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-incomplete-response-min-payload.xml +7 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-incomplete-response-payload.xml +332 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-malformed-request-payload.xml +28 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-malformed-response-min-payload.xml +7 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-malformed-response-payload.xml +20 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-request-payload.xml +28 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-response-min-payload.xml +7 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-response-payload.xml +332 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-unauthorized-request-payload.xml +28 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-unauthorized-response-min-payload.xml +7 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-unauthorized-response-payload.xml +8 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/gao-assessment-request-payload.xml +176 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/gao-assessment-response-payload-min.xml +32 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/gao-assessment-response-payload.xml +80 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/track3-cds-evaluate-cdc-immunization.xml +290 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/track3-cds-evaluate-gao-profile.xml +110 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track6-FHIR-Genomics/Client_Assigned_Id/TestScript_FHIR-Genomics.xml +170 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track6-FHIR-Genomics/_reference/resources/sequence-example-1.xml +31 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track6-FHIR-Genomics/_reference/resources/sequence-example-2.xml +31 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Actors.png +0 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Client_Assigned_Id/track7-laborder100-xml.xml +590 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Client_Assigned_Id/track7-laborder200-xml.xml +587 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Client_Assigned_Id/track7-laborder300-xml.xml +612 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Client_Assigned_Id/track7-laborder400-xml.xml +635 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Peer-to-Peer/track7-laborder100-peer2peer-xml.xml +752 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Thumbs.db +0 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/conformance/LabOrderLabReport-CreateDeleteReadUpdate.xml +187 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/conformance/html.xslt +45 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-100-update.xml +64 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-100.xml +64 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-200-update.xml +121 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-200.xml +121 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-300-update.xml +91 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-300.xml +91 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-400-update.xml +88 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-400.xml +88 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticReport/dr-100.xml +96 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticReport/dr-200.xml +125 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticReport/dr-300.xml +132 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticReport/dr-400.xml +121 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-100.xml +58 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-101.xml +58 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-200.xml +125 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-300.xml +106 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-301.xml +106 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-302.xml +106 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-303.xml +106 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-304.xml +106 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-400.xml +87 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-401.xml +95 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-402.xml +95 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-403.xml +84 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-404.xml +84 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-405.xml +83 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-406.xml +83 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-407.xml +70 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-408.xml +84 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-uslab-example5.xml +102 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Order/order-100.xml +61 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Order/order-200.xml +61 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Order/order-300.xml +61 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Order/order-400.xml +61 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-100.xml +79 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-110.xml +79 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-200.xml +79 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-210.xml +79 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-300.xml +79 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-310.xml +79 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-400.xml +79 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-410.xml +79 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Organization/org-uslab-example3.xml +49 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Patient/patient-uslab-example1.xml +44 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Practitioner/pract-uslab-example1.xml +18 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Practitioner/pract-uslab-example3.xml +36 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/Thumbs.db +0 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/spec-100.xml +65 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/spec-400.xml +70 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/spec-uslab-example1.xml +82 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Testscript 1 Document.txt +122 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Testscript 2 Document.txt +103 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Testscript 3 Document.txt +201 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Testscript 4 Document.txt +310 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/_reference/conformance/MedicationStatementCreate.xml +11 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/_reference/conformance/PatientSearchType.xml +15 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/_reference/resources/medicationstatement-create.json +39 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/_reference/resources/medicationstatement-patch.json +3 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/track9-patch-medicationstatement-json-if-match.xml +321 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/track9-patch-medicationstatement-json.xml +303 -0
- data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/track9-patch-peer2peer-patient-json.xml +235 -0
- data/plan_executor.gemspec +14 -0
- data/test/fixtures/diagnostic_bundle.xml +51 -0
- data/test/fixtures/lab_results_bundle.xml +49 -0
- data/test/fixtures/observation_bundle.json +61 -0
- data/test/fixtures/testscript-example.xml +202 -0
- data/test/fixtures/testscript-history.xml +143 -0
- data/test/fixtures/testscript-readtest.xml +272 -0
- data/test/fixtures/testscript-search.xml +282 -0
- data/test/fixtures/testscript-update.xml +147 -0
- data/test/fixtures/vital_signs_bundle.xml +117 -0
- data/test/test_helper.rb +8 -0
- data/test/unit/argonaut_sprint6_test.rb +31 -0
- data/test/unit/argonaut_sprint7_test.rb +21 -0
- data/test/unit/basic_test.rb +27 -0
- data/test/unit/fetch_patient_record_test.rb +357 -0
- data/test/unit/financial_test.rb +41 -0
- data/test/unit/fixtures_test.rb +45 -0
- data/test/unit/metadata_test.rb +33 -0
- metadata +394 -0
@@ -0,0 +1,290 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<TestScript xmlns="http://hl7.org/fhir">
|
3
|
+
<id value="track3-cds-evaluate-cdc-immunization"/>
|
4
|
+
|
5
|
+
<url value="http://wildfhir.aegis.net/fhir/TestScript/track3-cds-evaluate-cdc-immunization"/>
|
6
|
+
<name value="FHIR Connectathon 11 - Track 3 - CDS on FHIR - Evaluate CDC Immunization"/>
|
7
|
+
<status value="draft"/>
|
8
|
+
<publisher value="Database Consulting Group, AEGIS.net, Inc."/>
|
9
|
+
<contact>
|
10
|
+
<name value="Bryn Rhodes"/>
|
11
|
+
<telecom>
|
12
|
+
<system value="email"/>
|
13
|
+
<value value="bryn@databaseconsultinggroup.com"/>
|
14
|
+
<use value="work"/>
|
15
|
+
</telecom>
|
16
|
+
</contact>
|
17
|
+
<contact>
|
18
|
+
<name value="Touchstone Support"/>
|
19
|
+
<telecom>
|
20
|
+
<system value="email"/>
|
21
|
+
<value value="Touchstone_Support@aegis.net"/>
|
22
|
+
<use value="work"/>
|
23
|
+
</telecom>
|
24
|
+
</contact>
|
25
|
+
<date value="2015-12-23"/>
|
26
|
+
<description value="FHIR Connectathon 11 - Track 3 - CDS on FHIR - Evaluate CDC immunization test."/>
|
27
|
+
<useContext>
|
28
|
+
<coding>
|
29
|
+
<system value="urn:iso:std:iso:3166"/>
|
30
|
+
<code value="US"/>
|
31
|
+
<display value="United States of America (the)"/>
|
32
|
+
</coding>
|
33
|
+
</useContext>
|
34
|
+
<requirements value="DecisionSupportServiceModule Evaluate Operation"/>
|
35
|
+
<copyright value="© Database Consulting Group 2015+, © AEGIS.net, Inc. 2015+"/>
|
36
|
+
|
37
|
+
<metadata>
|
38
|
+
<capability>
|
39
|
+
<required value="true"/>
|
40
|
+
<validated value="true"/>
|
41
|
+
<description value="DecisionSupportServiceModule $evaluate operation"/>
|
42
|
+
<link value="http://hl7.org/fhir/2016Jan/decisionsupportservicemodule-operations.html#evaluate"/>
|
43
|
+
<conformance>
|
44
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/conformance/DecisionSupportServiceModule-Evaluate.xml"/>
|
45
|
+
<display value="Minimum supported resource types and operations to verify on the destination server"/>
|
46
|
+
</conformance>
|
47
|
+
</capability>
|
48
|
+
</metadata>
|
49
|
+
|
50
|
+
<fixture id="ecrs-fhir-cdc-immunizations-incomplete-request-payload">
|
51
|
+
<resource>
|
52
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-incomplete-request-payload.xml"/>
|
53
|
+
<display value="Incomplete CDC Immunization request payload"/>
|
54
|
+
</resource>
|
55
|
+
</fixture>
|
56
|
+
<fixture id="ecrs-fhir-cdc-immunizations-incomplete-response-min-payload">
|
57
|
+
<resource>
|
58
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-incomplete-response-min-payload.xml"/>
|
59
|
+
<display value="Incomplete CDC Immunization response payload"/>
|
60
|
+
</resource>
|
61
|
+
</fixture>
|
62
|
+
<fixture id="ecrs-fhir-cdc-immunizations-incomplete-response-payload">
|
63
|
+
<resource>
|
64
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-incomplete-response-payload.xml"/>
|
65
|
+
<display value="Incomplete CDC Immunization response payload"/>
|
66
|
+
</resource>
|
67
|
+
</fixture>
|
68
|
+
<fixture id="ecrs-fhir-cdc-immunizations-malformed-request-payload">
|
69
|
+
<resource>
|
70
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-malformed-request-payload.xml"/>
|
71
|
+
<display value="Malformed CDC Immunization request payload"/>
|
72
|
+
</resource>
|
73
|
+
</fixture>
|
74
|
+
<fixture id="ecrs-fhir-cdc-immunizations-malformed-response-min-payload">
|
75
|
+
<resource>
|
76
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-malformed-response-min-payload.xml"/>
|
77
|
+
<display value="Malformed CDC Immunization response payload"/>
|
78
|
+
</resource>
|
79
|
+
</fixture>
|
80
|
+
<fixture id="ecrs-fhir-cdc-immunizations-malformed-response-payload">
|
81
|
+
<resource>
|
82
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-malformed-response-payload.xml"/>
|
83
|
+
<display value="Malformed CDC Immunization response payload"/>
|
84
|
+
</resource>
|
85
|
+
</fixture>
|
86
|
+
<fixture id="ecrs-fhir-cdc-immunizations-request-payload">
|
87
|
+
<resource>
|
88
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-request-payload.xml"/>
|
89
|
+
<display value="CDC Immunization request payload"/>
|
90
|
+
</resource>
|
91
|
+
</fixture>
|
92
|
+
<fixture id="ecrs-fhir-cdc-immunizations-response-min-payload">
|
93
|
+
<resource>
|
94
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-response-min-payload.xml"/>
|
95
|
+
<display value="CDC Immunization response payload"/>
|
96
|
+
</resource>
|
97
|
+
</fixture>
|
98
|
+
<fixture id="ecrs-fhir-cdc-immunizations-response-payload">
|
99
|
+
<resource>
|
100
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-response-payload.xml"/>
|
101
|
+
<display value="CDC Immunization response payload"/>
|
102
|
+
</resource>
|
103
|
+
</fixture>
|
104
|
+
<fixture id="ecrs-fhir-cdc-immunizations-unauthorized-request-payload">
|
105
|
+
<resource>
|
106
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-unauthorized-request-payload.xml"/>
|
107
|
+
<display value="Unauthorized CDC Immunization request payload"/>
|
108
|
+
</resource>
|
109
|
+
</fixture>
|
110
|
+
<fixture id="ecrs-fhir-cdc-immunizations-unauthorized-response-min-payload">
|
111
|
+
<resource>
|
112
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-unauthorized-response-min-payload.xml"/>
|
113
|
+
<display value="Unauthorized CDC Immunization response payload"/>
|
114
|
+
</resource>
|
115
|
+
</fixture>
|
116
|
+
<fixture id="ecrs-fhir-cdc-immunizations-unauthorized-response-payload">
|
117
|
+
<resource>
|
118
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-unauthorized-response-payload.xml"/>
|
119
|
+
<display value="Unauthorized CDC Immunization response payload"/>
|
120
|
+
</resource>
|
121
|
+
</fixture>
|
122
|
+
|
123
|
+
<test id="evaluate-cdc-immunization">
|
124
|
+
<name value="EvaluateWithCDCImmunizationPayload"/>
|
125
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule resource."/>
|
126
|
+
<action>
|
127
|
+
<operation>
|
128
|
+
<type>
|
129
|
+
<code value="evaluate"/>
|
130
|
+
</type>
|
131
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule with CDC Immunization payload. The destination server is expected to have the DecisionSupportServiceModule/ecrs-fhir-cdc-immunizations instance in its repository."/>
|
132
|
+
<accept value="xml"/>
|
133
|
+
<contentType value="xml"/>
|
134
|
+
<params value="/DecisionSupportServiceModule/ecrs-fhir-cdc-immunizations/$evaluate"/>
|
135
|
+
<responseId value="evaluate-actual-response-payload"/> <!-- Not needed until subsequent tests are defined that require this reference. -->
|
136
|
+
<sourceId value="ecrs-fhir-cdc-immunizations-request-payload"/>
|
137
|
+
</operation>
|
138
|
+
</action>
|
139
|
+
<action>
|
140
|
+
<assert>
|
141
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
142
|
+
<response value="okay"/>
|
143
|
+
</assert>
|
144
|
+
</action>
|
145
|
+
<action>
|
146
|
+
<assert>
|
147
|
+
<description value="Confirm that the returned format is XML."/>
|
148
|
+
<contentType value="xml"/>
|
149
|
+
</assert>
|
150
|
+
</action>
|
151
|
+
<action>
|
152
|
+
<assert>
|
153
|
+
<description value="Confirm that the returned resource type is GuidanceResponse."/>
|
154
|
+
<resource value="GuidanceResponse"/>
|
155
|
+
</assert>
|
156
|
+
</action>
|
157
|
+
<action>
|
158
|
+
<assert>
|
159
|
+
<description value="Confirm that returned GuidanceResponse contains the minimum expected content."/>
|
160
|
+
<minimumId value="ecrs-fhir-cdc-immunizations-response-min-payload"/>
|
161
|
+
</assert>
|
162
|
+
</action>
|
163
|
+
</test>
|
164
|
+
|
165
|
+
<test id="evaluate-cdc-immunization-incomplete">
|
166
|
+
<name value="EvaluateWithIncompleteCDCImmunizationPayload"/>
|
167
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule resource."/>
|
168
|
+
<action>
|
169
|
+
<operation>
|
170
|
+
<type>
|
171
|
+
<code value="evaluate"/>
|
172
|
+
</type>
|
173
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule with an incomplete CDC Immunization payload. The destination server is expected to have the DecisionSupportServiceModule/ecrs-fhir-cdc-immunizations instance in its repository."/>
|
174
|
+
<accept value="xml"/>
|
175
|
+
<contentType value="xml"/>
|
176
|
+
<params value="/DecisionSupportServiceModule/ecrs-fhir-cdc-immunizations/$evaluate"/>
|
177
|
+
<responseId value="evaluate-actual-response-payload"/> <!-- Not needed until subsequent tests are defined that require this reference. -->
|
178
|
+
<sourceId value="ecrs-fhir-cdc-immunizations-incomplete-request-payload"/>
|
179
|
+
</operation>
|
180
|
+
</action>
|
181
|
+
<action>
|
182
|
+
<assert>
|
183
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
184
|
+
<response value="okay"/>
|
185
|
+
</assert>
|
186
|
+
</action>
|
187
|
+
<action>
|
188
|
+
<assert>
|
189
|
+
<description value="Confirm that the returned format is XML."/>
|
190
|
+
<contentType value="xml"/>
|
191
|
+
</assert>
|
192
|
+
</action>
|
193
|
+
<action>
|
194
|
+
<assert>
|
195
|
+
<description value="Confirm that the returned resource type is GuidanceResponse."/>
|
196
|
+
<resource value="GuidanceResponse"/>
|
197
|
+
</assert>
|
198
|
+
</action>
|
199
|
+
<action>
|
200
|
+
<assert>
|
201
|
+
<description value="Confirm that returned GuidanceResponse contains the minimum expected content."/>
|
202
|
+
<minimumId value="ecrs-fhir-cdc-immunizations-incomplete-response-min-payload"/>
|
203
|
+
</assert>
|
204
|
+
</action>
|
205
|
+
</test>
|
206
|
+
|
207
|
+
<test id="evaluate-cdc-immunization-malformed">
|
208
|
+
<name value="EvaluateWithMalformedCDCImmunizationPayload"/>
|
209
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule resource."/>
|
210
|
+
<action>
|
211
|
+
<operation>
|
212
|
+
<type>
|
213
|
+
<code value="evaluate"/>
|
214
|
+
</type>
|
215
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule with a malformed CDC Immunization payload. The destination server is expected to have the DecisionSupportServiceModule/ecrs-fhir-cdc-immunizations instance in its repository."/>
|
216
|
+
<accept value="xml"/>
|
217
|
+
<contentType value="xml"/>
|
218
|
+
<params value="/DecisionSupportServiceModule/ecrs-fhir-cdc-immunizations/$evaluate"/>
|
219
|
+
<responseId value="evaluate-actual-response-payload"/> <!-- Not needed until subsequent tests are defined that require this reference. -->
|
220
|
+
<sourceId value="ecrs-fhir-cdc-immunizations-malformed-request-payload"/>
|
221
|
+
</operation>
|
222
|
+
</action>
|
223
|
+
<action>
|
224
|
+
<assert>
|
225
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
226
|
+
<response value="okay"/>
|
227
|
+
</assert>
|
228
|
+
</action>
|
229
|
+
<action>
|
230
|
+
<assert>
|
231
|
+
<description value="Confirm that the returned format is XML."/>
|
232
|
+
<contentType value="xml"/>
|
233
|
+
</assert>
|
234
|
+
</action>
|
235
|
+
<action>
|
236
|
+
<assert>
|
237
|
+
<description value="Confirm that the returned resource type is GuidanceResponse."/>
|
238
|
+
<resource value="GuidanceResponse"/>
|
239
|
+
</assert>
|
240
|
+
</action>
|
241
|
+
<action>
|
242
|
+
<assert>
|
243
|
+
<description value="Confirm that returned GuidanceResponse contains the minimum expected content."/>
|
244
|
+
<minimumId value="ecrs-fhir-cdc-immunizations-malformed-response-min-payload"/>
|
245
|
+
</assert>
|
246
|
+
</action>
|
247
|
+
</test>
|
248
|
+
|
249
|
+
<test id="evaluate-cdc-immunization-unauthorized">
|
250
|
+
<name value="EvaluateWithUnauthorizedCDCImmunizationPayload"/>
|
251
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule resource."/>
|
252
|
+
<action>
|
253
|
+
<operation>
|
254
|
+
<type>
|
255
|
+
<code value="evaluate"/>
|
256
|
+
</type>
|
257
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule with an unauthorized CDC Immunization payload. The destination server is expected to have the DecisionSupportServiceModule/ecrs-fhir-cdc-immunizations instance in its repository."/>
|
258
|
+
<accept value="xml"/>
|
259
|
+
<contentType value="xml"/>
|
260
|
+
<params value="/DecisionSupportServiceModule/ecrs-fhir-cdc-immunizations/$evaluate"/>
|
261
|
+
<responseId value="evaluate-actual-response-payload"/> <!-- Not needed until subsequent tests are defined that require this reference. -->
|
262
|
+
<sourceId value="ecrs-fhir-cdc-immunizations-unauthorized-request-payload"/>
|
263
|
+
</operation>
|
264
|
+
</action>
|
265
|
+
<action>
|
266
|
+
<assert>
|
267
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
268
|
+
<response value="okay"/>
|
269
|
+
</assert>
|
270
|
+
</action>
|
271
|
+
<action>
|
272
|
+
<assert>
|
273
|
+
<description value="Confirm that the returned format is XML."/>
|
274
|
+
<contentType value="xml"/>
|
275
|
+
</assert>
|
276
|
+
</action>
|
277
|
+
<action>
|
278
|
+
<assert>
|
279
|
+
<description value="Confirm that the returned resource type is OperationOutcome."/>
|
280
|
+
<resource value="OperationOutcome"/>
|
281
|
+
</assert>
|
282
|
+
</action>
|
283
|
+
<action>
|
284
|
+
<assert>
|
285
|
+
<description value="Confirm that returned GuidanceResponse contains the minimum expected content."/>
|
286
|
+
<minimumId value="ecrs-fhir-cdc-immunizations-unauthorized-response-min-payload"/>
|
287
|
+
</assert>
|
288
|
+
</action>
|
289
|
+
</test>
|
290
|
+
</TestScript>
|
data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/track3-cds-evaluate-gao-profile.xml
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<TestScript xmlns="http://hl7.org/fhir">
|
3
|
+
<id value="track3-cds-evaluate-gao-profile"/>
|
4
|
+
|
5
|
+
<url value="http://wildfhir.aegis.net/fhir/TestScript/track3-cds-evaluate-gao-profile"/>
|
6
|
+
<name value="FHIR Connectathon 11 - Track 3 - CDS on FHIR - Evaluate GAO Profile"/>
|
7
|
+
<status value="draft"/>
|
8
|
+
<publisher value="Database Consulting Group, AEGIS.net, Inc."/>
|
9
|
+
<contact>
|
10
|
+
<name value="Bryn Rhodes"/>
|
11
|
+
<telecom>
|
12
|
+
<system value="email"/>
|
13
|
+
<value value="bryn@databaseconsultinggroup.com"/>
|
14
|
+
<use value="work"/>
|
15
|
+
</telecom>
|
16
|
+
</contact>
|
17
|
+
<contact>
|
18
|
+
<name value="Touchstone Support"/>
|
19
|
+
<telecom>
|
20
|
+
<system value="email"/>
|
21
|
+
<value value="Touchstone_Support@aegis.net"/>
|
22
|
+
<use value="work"/>
|
23
|
+
</telecom>
|
24
|
+
</contact>
|
25
|
+
<date value="2015-12-23"/>
|
26
|
+
<description value="FHIR Connectathon 11 - Track 3 - CDS on FHIR - Evaluate GAO profile test."/>
|
27
|
+
<useContext>
|
28
|
+
<coding>
|
29
|
+
<system value="urn:iso:std:iso:3166"/>
|
30
|
+
<code value="US"/>
|
31
|
+
<display value="United States of America (the)"/>
|
32
|
+
</coding>
|
33
|
+
</useContext>
|
34
|
+
<requirements value="DecisionSupportServiceModule Evaluate Operation"/>
|
35
|
+
<copyright value="© Database Consulting Group 2015+, © AEGIS.net, Inc. 2015+"/>
|
36
|
+
|
37
|
+
<metadata>
|
38
|
+
<capability>
|
39
|
+
<required value="true"/>
|
40
|
+
<validated value="true"/>
|
41
|
+
<description value="DecisionSupportServiceModule $evaluate operation"/>
|
42
|
+
<link value="http://hl7.org/fhir/2016Jan/decisionsupportservicemodule-operations.html#evaluate"/>
|
43
|
+
<conformance>
|
44
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/conformance/DecisionSupportServiceModule-Evaluate.xml"/>
|
45
|
+
<display value="Minimum supported resource types and operations to verify on the destination server"/>
|
46
|
+
</conformance>
|
47
|
+
</capability>
|
48
|
+
</metadata>
|
49
|
+
|
50
|
+
<fixture id="gao-assessment-request">
|
51
|
+
<resource>
|
52
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/gao-assessment-request-payload.xml"/>
|
53
|
+
<display value="Evaluate request payload"/>
|
54
|
+
</resource>
|
55
|
+
</fixture>
|
56
|
+
<fixture id="gao-assessment-response">
|
57
|
+
<resource>
|
58
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/gao-assessment-response-payload.xml"/>
|
59
|
+
<display value="Evaluate response payload"/>
|
60
|
+
</resource>
|
61
|
+
</fixture>
|
62
|
+
<fixture id="gao-assessment-response-min">
|
63
|
+
<resource>
|
64
|
+
<reference value="/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/gao-assessment-response-payload-min.xml"/>
|
65
|
+
<display value="Evaluate response payload minimum contents for validation"/>
|
66
|
+
</resource>
|
67
|
+
</fixture>
|
68
|
+
|
69
|
+
<test id="evaluate-gao-profile">
|
70
|
+
<name value="EvaluateWithGAOProfilePayload"/>
|
71
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule resource."/>
|
72
|
+
<action>
|
73
|
+
<operation>
|
74
|
+
<type>
|
75
|
+
<code value="evaluate"/>
|
76
|
+
</type>
|
77
|
+
<description value="Test the $evaluate operation of the DecisionSupportServiceModule with GAO profile payload. The destination server is expected to have the DecisionSupportServiceModule/gao-assessment instance in its repository."/>
|
78
|
+
<accept value="xml"/>
|
79
|
+
<contentType value="xml"/>
|
80
|
+
<params value="/DecisionSupportServiceModule/gao-assessment/$evaluate"/>
|
81
|
+
<responseId value="gao-assessment-actual-response"/> <!-- Not needed until subsequent tests are defined that require this reference. -->
|
82
|
+
<sourceId value="gao-assessment-request"/>
|
83
|
+
</operation>
|
84
|
+
</action>
|
85
|
+
<action>
|
86
|
+
<assert>
|
87
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
88
|
+
<response value="okay"/>
|
89
|
+
</assert>
|
90
|
+
</action>
|
91
|
+
<action>
|
92
|
+
<assert>
|
93
|
+
<description value="Confirm that the returned format is XML."/>
|
94
|
+
<contentType value="xml"/>
|
95
|
+
</assert>
|
96
|
+
</action>
|
97
|
+
<action>
|
98
|
+
<assert>
|
99
|
+
<description value="Confirm that the returned resource type is GuidanceResponse."/>
|
100
|
+
<resource value="GuidanceResponse"/>
|
101
|
+
</assert>
|
102
|
+
</action>
|
103
|
+
<action>
|
104
|
+
<assert>
|
105
|
+
<description value="Confirm that returned GuidanceResponse contains the minimum expected content."/>
|
106
|
+
<minimumId value="gao-assessment-response-min"/>
|
107
|
+
</assert>
|
108
|
+
</action>
|
109
|
+
</test>
|
110
|
+
</TestScript>
|
@@ -0,0 +1,170 @@
|
|
1
|
+
<TestScript xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="track1-fhir-genomics-client-id"/>
|
3
|
+
|
4
|
+
<url value="???"/>
|
5
|
+
<name value="FHIR Connectathon 11 - Track 6 - FHIR Genomics"/>
|
6
|
+
<status value="draft"/>
|
7
|
+
<publisher value="Clinical Genomics Workgroup"/>
|
8
|
+
<date value="2015-12-21"/>
|
9
|
+
<description value="FHIR Connectathon 11 - Track 6 - FHIR Genomics - JSON Format - Baseline tests to create, update, retrieve history and search with client assigned resource id."/>
|
10
|
+
|
11
|
+
<fixture id="sequence-example-1">
|
12
|
+
<resource>
|
13
|
+
<reference value="/Connectathon11/Track-FHIR-Genomics/_reference/resources/sequence-example-1.json"/>
|
14
|
+
</resource>
|
15
|
+
</fixture>
|
16
|
+
<fixture id="sequence-example-2">
|
17
|
+
<resource>
|
18
|
+
<reference value="/Connectathon11/Track-FHIR-Genomics/_reference/resources/sequence-example-2.json"/>
|
19
|
+
</resource>
|
20
|
+
</fixture>
|
21
|
+
|
22
|
+
<setup>
|
23
|
+
<action>
|
24
|
+
<operation>
|
25
|
+
<type>
|
26
|
+
<code value="delete"/>
|
27
|
+
</type>
|
28
|
+
<resource value="Sequence"/>
|
29
|
+
<description value="Use a conditional delete operation to insure the patient does not exist on the server."/>
|
30
|
+
<accept value="json"/>
|
31
|
+
<contentType value="json"/>
|
32
|
+
<params value="/${createIdentifier}"/>
|
33
|
+
</operation>
|
34
|
+
</action>
|
35
|
+
</setup>
|
36
|
+
|
37
|
+
<profile id="bundle-profile">
|
38
|
+
<reference value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
|
39
|
+
</profile>
|
40
|
+
<profile id="patient-profile">
|
41
|
+
<reference value="http://hl7.org/fhir/StructureDefinition/Sequence"/>
|
42
|
+
</profile>
|
43
|
+
|
44
|
+
<variable>
|
45
|
+
<name value="createIdentifier"/>
|
46
|
+
<path value="Sequence/identifier/value"/>
|
47
|
+
</variable>
|
48
|
+
<variable>
|
49
|
+
<name value="searchVariantID"/>
|
50
|
+
<path value="Sequence/variantID/coding/code"/>
|
51
|
+
</variable>
|
52
|
+
|
53
|
+
<test id="Step1-RegisterNewSequence">
|
54
|
+
<name value="RegisterNewSequence"/>
|
55
|
+
<description value="Create a new Sequence where the client assigns the resource id using JSON."/>
|
56
|
+
|
57
|
+
<action>
|
58
|
+
<operation>
|
59
|
+
<type>
|
60
|
+
<code value="update"/>
|
61
|
+
</type>
|
62
|
+
<resource value="Sequence"/>
|
63
|
+
<description value="Create patient with client assigned resource id."/>
|
64
|
+
<accept value="json"/>
|
65
|
+
<contentType value="json"/>
|
66
|
+
<params value="/${createIdentifier}"/>
|
67
|
+
<responseId value="create-response" />
|
68
|
+
<sourceId value="sequence-example"/>
|
69
|
+
</operation>
|
70
|
+
</action>
|
71
|
+
<action>
|
72
|
+
<assert>
|
73
|
+
<operator value="in"/>
|
74
|
+
<responseCode value="200,201"/>
|
75
|
+
</assert>
|
76
|
+
</action>
|
77
|
+
<action>
|
78
|
+
<assert>
|
79
|
+
<contentType value="json"/>
|
80
|
+
<warningOnly value="true"/>
|
81
|
+
</assert>
|
82
|
+
</action>
|
83
|
+
|
84
|
+
<action>
|
85
|
+
<operation>
|
86
|
+
<type>
|
87
|
+
<code value="read"/>
|
88
|
+
</type>
|
89
|
+
<resource value="Sequence"/>
|
90
|
+
<description value="Read using params element"/>
|
91
|
+
<accept value="json"/>
|
92
|
+
<contentType value="json"/>
|
93
|
+
<params value="/${createIdentifier}"/>
|
94
|
+
</operation>
|
95
|
+
</action>
|
96
|
+
<action>
|
97
|
+
<assert>
|
98
|
+
<validateProfileId value="sequence-profile"/>
|
99
|
+
<warningOnly value="true"/>
|
100
|
+
</assert>
|
101
|
+
</action>
|
102
|
+
<action>
|
103
|
+
<assert>
|
104
|
+
<description value="Confirm that the response contains the created version of the sequence."/>
|
105
|
+
</assert>
|
106
|
+
</action>
|
107
|
+
<action>
|
108
|
+
<assert>
|
109
|
+
<description value="Confirm that version of resource is 1 after the create. Warning only as the server may re-establish this resource id from a previous deletion."/>
|
110
|
+
<path value="Patient/meta/versionId"/>
|
111
|
+
<value value="1"/>
|
112
|
+
<warningOnly value="true"/>
|
113
|
+
</assert>
|
114
|
+
</action>
|
115
|
+
</test>
|
116
|
+
|
117
|
+
<test id="Step2-SequenceSearch">
|
118
|
+
<name value="Step2-SequenceSearch"/>
|
119
|
+
<description value="Search for a patient with the name 'James Chalmers'."/>
|
120
|
+
|
121
|
+
<action>
|
122
|
+
<operation>
|
123
|
+
<type>
|
124
|
+
<code value="search"/>
|
125
|
+
</type>
|
126
|
+
<resource value="Sequence"/>
|
127
|
+
<description value="Search for the Sequence with variant rs1201207."/>
|
128
|
+
<accept value="json"/>
|
129
|
+
<contentType value="json"/>
|
130
|
+
<params value="?variantID=${searchVariantID}"/>
|
131
|
+
</operation>
|
132
|
+
</action>
|
133
|
+
<action>
|
134
|
+
<assert>
|
135
|
+
<response value="okay"/>
|
136
|
+
</assert>
|
137
|
+
</action>
|
138
|
+
<action>
|
139
|
+
<assert>
|
140
|
+
<contentType value="json"/>
|
141
|
+
</assert>
|
142
|
+
</action>
|
143
|
+
<action>
|
144
|
+
<assert>
|
145
|
+
<resource value="Bundle"/>
|
146
|
+
</assert>
|
147
|
+
</action>
|
148
|
+
<action>
|
149
|
+
<assert>
|
150
|
+
<description value="Confirm that there is at least one record returned. There could be other sequence records returned."/>
|
151
|
+
<operator value="greaterThan"/>
|
152
|
+
<path value="/Bundle/total"/>
|
153
|
+
<value value="0"/>
|
154
|
+
<warningOnly value="true"/>
|
155
|
+
</assert>
|
156
|
+
</action>
|
157
|
+
</test>
|
158
|
+
|
159
|
+
<teardown>
|
160
|
+
<action>
|
161
|
+
<operation>
|
162
|
+
<type>
|
163
|
+
<code value="delete"/>
|
164
|
+
</type>
|
165
|
+
<resource value="Sequence"/>
|
166
|
+
<params value="/${createIdentifier}"/>
|
167
|
+
</operation>
|
168
|
+
</action>
|
169
|
+
</teardown>
|
170
|
+
</TestScript>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Sequence xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ..\..\schema\sequence.xsd">
|
3
|
+
<id value="example-1"/>
|
4
|
+
<type value="DNA"/>
|
5
|
+
<variationID>
|
6
|
+
<coding>
|
7
|
+
<system value="http://www.ncbi.nlm.nih.gov/projects/SNP"/>
|
8
|
+
<code value="rs1201207"/>
|
9
|
+
</coding>
|
10
|
+
<text value="rs1201207"/>
|
11
|
+
</variationID>
|
12
|
+
<coordinate>
|
13
|
+
<chromosome>
|
14
|
+
<text value="4"/>
|
15
|
+
</chromosome>
|
16
|
+
<start value="151829659"/>
|
17
|
+
<end value="151829660"/>
|
18
|
+
<genomeBuild>
|
19
|
+
<text value="GRCh37"/>
|
20
|
+
</genomeBuild>
|
21
|
+
</coordinate>
|
22
|
+
<species>
|
23
|
+
<coding>
|
24
|
+
<system value="http://snomed.info/sct"/>
|
25
|
+
<code value="337915000"/>
|
26
|
+
</coding>
|
27
|
+
<text value="Homo sapiens"/>
|
28
|
+
</species>
|
29
|
+
<observedAllele value="C"/>
|
30
|
+
<referenceAllele value="T"/>
|
31
|
+
</Sequence>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Sequence xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ..\..\schema\sequence.xsd">
|
3
|
+
<id value="example-2"/>
|
4
|
+
<type value="DNA"/>
|
5
|
+
<variationID>
|
6
|
+
<coding>
|
7
|
+
<system value="http://www.ncbi.nlm.nih.gov/projects/SNP"/>
|
8
|
+
<code value="rs3729508"/>
|
9
|
+
</coding>
|
10
|
+
<text value="rs1201207"/>
|
11
|
+
</variationID>
|
12
|
+
<coordinate>
|
13
|
+
<chromosome>
|
14
|
+
<text value="17"/>
|
15
|
+
</chromosome>
|
16
|
+
<start value="26109030"/>
|
17
|
+
<end value="26109031"/>
|
18
|
+
<genomeBuild>
|
19
|
+
<text value="GRCh37"/>
|
20
|
+
</genomeBuild>
|
21
|
+
</coordinate>
|
22
|
+
<species>
|
23
|
+
<coding>
|
24
|
+
<system value="http://snomed.info/sct"/>
|
25
|
+
<code value="337915000"/>
|
26
|
+
</coding>
|
27
|
+
<text value="Homo sapiens"/>
|
28
|
+
</species>
|
29
|
+
<observedAllele value="C"/>
|
30
|
+
<referenceAllele value="T"/>
|
31
|
+
</Sequence>
|