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,612 @@
|
|
1
|
+
<TestScript xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2
|
+
<id value="track7-laborder300-xml"/>
|
3
|
+
<url value="http://wildfhir.aegis.net/dstu2/TestScript/track7-laborder300-xml"/>
|
4
|
+
<version value="1.0"/>
|
5
|
+
<name value="FHIR Connectathon 11 - Track 7 - Lab Order Lab Report - XML Format - Test Order Number 300"/>
|
6
|
+
<status value="draft"/>
|
7
|
+
<publisher value="Health eData Inc, AEGIS.net, Inc."/>
|
8
|
+
<contact>
|
9
|
+
<name value="Eric M Haas"/>
|
10
|
+
<telecom>
|
11
|
+
<system value="email"/>
|
12
|
+
<value value="ehaas@healthedatainc@gmail.com"/>
|
13
|
+
<use value="temp"/>
|
14
|
+
</telecom>
|
15
|
+
</contact>
|
16
|
+
<contact>
|
17
|
+
<name value="Touchstone Support"/>
|
18
|
+
<telecom>
|
19
|
+
<system value="email"/>
|
20
|
+
<value value="Touchstone_Support@aegis.net"/>
|
21
|
+
<use value="work"/>
|
22
|
+
</telecom>
|
23
|
+
</contact>
|
24
|
+
<date value="2015-12-17"/>
|
25
|
+
<description value="FHIR Connectathon 11 - Track 7 - Lab Order Lab Report - Test Order Number 300; resource format XML; Baseline DiagnosticOrder, Order, OrderResponse, DiagnosticReport, Observation, Specimen, Patient = Todd Lerr, Practitioner = Leonard BloodDraw, Practitioner = Gregory F House, Organization = Acme Labs to create, update, retrieve history and search with client assigned resource id."/>
|
26
|
+
<useContext>
|
27
|
+
<coding>
|
28
|
+
<system value="urn:iso:std:iso:3166"/>
|
29
|
+
<code value="US"/>
|
30
|
+
<display value="United States of America (the)"/>
|
31
|
+
</coding>
|
32
|
+
</useContext>
|
33
|
+
<requirements value="DiagnosticOrder, Order, OrderResponse, DiagnosticReport, Observation, Specimen and Patient Operations"/>
|
34
|
+
<copyright value="© Health eData Inc, © AEGIS.net, Inc. 2015+"/>
|
35
|
+
<metadata>
|
36
|
+
<capability>
|
37
|
+
<required value="true"/>
|
38
|
+
<description value="Create, Read, Update and Delete Operations for all required resource types"/>
|
39
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#create"/>
|
40
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#read"/>
|
41
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#update"/>
|
42
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#delete"/>
|
43
|
+
<conformance>
|
44
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/conformance/LabOrderLabReport-CreateDeleteReadUpdate.xml"/>
|
45
|
+
<display value="Minimum supported resource types and operations to verify on the destination server"/>
|
46
|
+
</conformance>
|
47
|
+
</capability>
|
48
|
+
</metadata>
|
49
|
+
<fixture id="do-300">
|
50
|
+
<resource>
|
51
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-300.xml"/>
|
52
|
+
<display value="Diagnostic Order 300"/>
|
53
|
+
</resource>
|
54
|
+
</fixture>
|
55
|
+
<fixture id="do-300-update">
|
56
|
+
<resource>
|
57
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-300-update.xml"/>
|
58
|
+
<display value="Diagnostic Order 300 Updated status"/>
|
59
|
+
</resource>
|
60
|
+
</fixture>
|
61
|
+
<fixture id="order-300">
|
62
|
+
<resource>
|
63
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Order/order-300.xml"/>
|
64
|
+
<display value="Order 300"/>
|
65
|
+
</resource>
|
66
|
+
</fixture>
|
67
|
+
<fixture id="ordresp-300">
|
68
|
+
<resource>
|
69
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-300.xml"/>
|
70
|
+
<display value="Order Response 300"/>
|
71
|
+
</resource>
|
72
|
+
</fixture>
|
73
|
+
<fixture id="ordresp-310">
|
74
|
+
<resource>
|
75
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-310.xml"/>
|
76
|
+
<display value="Order Response 300 Updated status"/>
|
77
|
+
</resource>
|
78
|
+
</fixture>
|
79
|
+
<fixture id="org-uslab-example3">
|
80
|
+
<resource>
|
81
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Organization/org-uslab-example3.xml"/>
|
82
|
+
<display value="Acme Labs"/>
|
83
|
+
</resource>
|
84
|
+
</fixture>
|
85
|
+
<fixture id="patient-uslab-example1">
|
86
|
+
<resource>
|
87
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Patient/patient-uslab-example1.xml"/>
|
88
|
+
<display value="Todd Lerr"/>
|
89
|
+
</resource>
|
90
|
+
</fixture>
|
91
|
+
<fixture id="pract-uslab-example1">
|
92
|
+
<resource>
|
93
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Practitioner/pract-uslab-example1.xml"/>
|
94
|
+
<display value="Leonard BloodDraw"/>
|
95
|
+
</resource>
|
96
|
+
</fixture>
|
97
|
+
<fixture id="pract-uslab-example3">
|
98
|
+
<resource>
|
99
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Practitioner/pract-uslab-example3.xml"/>
|
100
|
+
<display value="Gregory F House"/>
|
101
|
+
</resource>
|
102
|
+
</fixture>
|
103
|
+
<fixture id="spec-100">
|
104
|
+
<resource>
|
105
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/spec-100.xml"/>
|
106
|
+
<display value="Plasma"/>
|
107
|
+
</resource>
|
108
|
+
</fixture>
|
109
|
+
<fixture id="spec-400">
|
110
|
+
<resource>
|
111
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/spec-400.xml"/>
|
112
|
+
<display value="Stool Specimen"/>
|
113
|
+
</resource>
|
114
|
+
</fixture>
|
115
|
+
<fixture id="spec-uslab-example1">
|
116
|
+
<resource>
|
117
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/spec-uslab-example1.xml"/>
|
118
|
+
<display value="Blood"/>
|
119
|
+
</resource>
|
120
|
+
</fixture>
|
121
|
+
<fixture id="dr-300">
|
122
|
+
<resource>
|
123
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticReport/dr-300.xml"/>
|
124
|
+
<display value="Diagnostic Report 300"/>
|
125
|
+
</resource>
|
126
|
+
</fixture>
|
127
|
+
<fixture id="obs-300">
|
128
|
+
<resource>
|
129
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-300.xml"/>
|
130
|
+
<display value="Observation 300"/>
|
131
|
+
</resource>
|
132
|
+
</fixture>
|
133
|
+
<fixture id="obs-301">
|
134
|
+
<resource>
|
135
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-301.xml"/>
|
136
|
+
<display value="Observation 301"/>
|
137
|
+
</resource>
|
138
|
+
</fixture>
|
139
|
+
<fixture id="obs-302">
|
140
|
+
<resource>
|
141
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-302.xml"/>
|
142
|
+
<display value="Observation 302"/>
|
143
|
+
</resource>
|
144
|
+
</fixture>
|
145
|
+
<fixture id="obs-303">
|
146
|
+
<resource>
|
147
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-303.xml"/>
|
148
|
+
<display value="Observation 303"/>
|
149
|
+
</resource>
|
150
|
+
</fixture>
|
151
|
+
<fixture id="obs-304">
|
152
|
+
<resource>
|
153
|
+
<reference value="/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-304.xml"/>
|
154
|
+
<display value="Observation 304"/>
|
155
|
+
</resource>
|
156
|
+
</fixture>
|
157
|
+
<!--
|
158
|
+
<profile id="patient-profile">
|
159
|
+
<reference value="http://hl7.org/fhir/StructureDefinition/Patient"/>
|
160
|
+
</profile>
|
161
|
+
-->
|
162
|
+
<variable>
|
163
|
+
<name value="do-300-resourceId"/>
|
164
|
+
<path value="DiagnosticOrder/id"/>
|
165
|
+
<sourceId value="do-300"/>
|
166
|
+
</variable>
|
167
|
+
<variable>
|
168
|
+
<name value="do-300-identifier"/>
|
169
|
+
<path value="DiagnosticOrder/identifier/value"/>
|
170
|
+
<sourceId value="do-300"/>
|
171
|
+
</variable>
|
172
|
+
<variable>
|
173
|
+
<name value="do-300-update-resourceId"/>
|
174
|
+
<path value="DiagnosticOrder/id"/>
|
175
|
+
<sourceId value="do-300-update"/>
|
176
|
+
</variable>
|
177
|
+
<variable>
|
178
|
+
<name value="do-300-update-identifier"/>
|
179
|
+
<path value="DiagnosticOrder/identifier/value"/>
|
180
|
+
<sourceId value="do-300-update"/>
|
181
|
+
</variable>
|
182
|
+
<variable>
|
183
|
+
<name value="dr-300-resourceId"/>
|
184
|
+
<path value="DiagnosticReport/id"/>
|
185
|
+
<sourceId value="dr-300"/>
|
186
|
+
</variable>
|
187
|
+
<variable>
|
188
|
+
<name value="dr-300-identifier"/>
|
189
|
+
<path value="DiagnosticReport/identifier/value"/>
|
190
|
+
<sourceId value="dr-300"/>
|
191
|
+
</variable>
|
192
|
+
<variable>
|
193
|
+
<name value="order-300-resourceId"/>
|
194
|
+
<path value="Order/id"/>
|
195
|
+
<sourceId value="order-300"/>
|
196
|
+
</variable>
|
197
|
+
<variable>
|
198
|
+
<name value="order-300-identifier"/>
|
199
|
+
<path value="Order/identifier/value"/>
|
200
|
+
<sourceId value="order-300"/>
|
201
|
+
</variable>
|
202
|
+
<variable>
|
203
|
+
<name value="ordresp-300-resourceId"/>
|
204
|
+
<path value="OrderResponse/id"/>
|
205
|
+
<sourceId value="ordresp-300"/>
|
206
|
+
</variable>
|
207
|
+
<variable>
|
208
|
+
<name value="ordresp-300-identifier"/>
|
209
|
+
<path value="OrderResponse/identifier/value"/>
|
210
|
+
<sourceId value="ordresp-300"/>
|
211
|
+
</variable>
|
212
|
+
<variable>
|
213
|
+
<name value="ordresp-310-resourceId"/>
|
214
|
+
<path value="OrderResponse/id"/>
|
215
|
+
<sourceId value="ordresp-310"/>
|
216
|
+
</variable>
|
217
|
+
<variable>
|
218
|
+
<name value="ordresp-310-identifier"/>
|
219
|
+
<path value="OrderResponse/identifier/value"/>
|
220
|
+
<sourceId value="ordresp-310"/>
|
221
|
+
</variable>
|
222
|
+
<setup>
|
223
|
+
<action>
|
224
|
+
<operation>
|
225
|
+
<type>
|
226
|
+
<code value="delete"/>
|
227
|
+
</type>
|
228
|
+
<resource value="DiagnosticOrder"/>
|
229
|
+
<description value="Use a conditional delete operation to insure the DiagnosticOrder do-300 does not exist on the server."/>
|
230
|
+
<accept value="xml"/>
|
231
|
+
<contentType value="xml"/>
|
232
|
+
<params value="?identifier=${do-300-identifier}"/>
|
233
|
+
</operation>
|
234
|
+
</action>
|
235
|
+
<action>
|
236
|
+
<operation>
|
237
|
+
<type>
|
238
|
+
<code value="delete"/>
|
239
|
+
</type>
|
240
|
+
<resource value="Order"/>
|
241
|
+
<description value="Use a conditional delete operation to insure the Order order-300 does not exist on the server."/>
|
242
|
+
<accept value="xml"/>
|
243
|
+
<contentType value="xml"/>
|
244
|
+
<params value="?identifier=${order-300-identifier}"/>
|
245
|
+
</operation>
|
246
|
+
</action>
|
247
|
+
<action>
|
248
|
+
<operation>
|
249
|
+
<type>
|
250
|
+
<code value="delete"/>
|
251
|
+
</type>
|
252
|
+
<resource value="DiagnosticOrder"/>
|
253
|
+
<description value="Use a conditional delete operation to insure the DiagnosticOrder do-300-update does not exist on the server."/>
|
254
|
+
<accept value="xml"/>
|
255
|
+
<contentType value="xml"/>
|
256
|
+
<params value="?identifier=${do-300-update-identifier}"/>
|
257
|
+
</operation>
|
258
|
+
</action>
|
259
|
+
<action>
|
260
|
+
<operation>
|
261
|
+
<type>
|
262
|
+
<code value="delete"/>
|
263
|
+
</type>
|
264
|
+
<resource value="OrderResponse"/>
|
265
|
+
<description value="Use a conditional delete operation to insure the OrderResponse ordresp -300 does not exist on the server."/>
|
266
|
+
<accept value="xml"/>
|
267
|
+
<contentType value="xml"/>
|
268
|
+
<params value="?identifier=${ordresp-300-identifier}"/>
|
269
|
+
</operation>
|
270
|
+
</action>
|
271
|
+
<action>
|
272
|
+
<operation>
|
273
|
+
<type>
|
274
|
+
<code value="delete"/>
|
275
|
+
</type>
|
276
|
+
<resource value="OrderResponse"/>
|
277
|
+
<description value="Use a conditional delete operation to insure the OrderResponce ordresp -310 does not exist on the server."/>
|
278
|
+
<accept value="xml"/>
|
279
|
+
<contentType value="xml"/>
|
280
|
+
<params value="?identifier=${ordresp-310-identifier}"/>
|
281
|
+
</operation>
|
282
|
+
</action>
|
283
|
+
<action>
|
284
|
+
<operation>
|
285
|
+
<type>
|
286
|
+
<code value="delete"/>
|
287
|
+
</type>
|
288
|
+
<resource value="DiagnosticResponse"/>
|
289
|
+
<description value="Use a conditional delete operation to insure the DiagnosticResponse dr-300 does not exist on the server."/>
|
290
|
+
<accept value="xml"/>
|
291
|
+
<contentType value="xml"/>
|
292
|
+
<params value="?identifier=${dr-300-identifier}"/>
|
293
|
+
</operation>
|
294
|
+
</action>
|
295
|
+
</setup>
|
296
|
+
<test id="Step1-OrderNewLabTest">
|
297
|
+
<name value="Step1-OrderNewLabTest"/>
|
298
|
+
<description value="Order Client posts DiagnosticOrder to Order Manager Server, and Order Client posts Order containing a reference to DiagnosticOrder to the OM Server saying 'Do this' (i.e. have a laboratory perform the test"/>
|
299
|
+
<action>
|
300
|
+
<operation>
|
301
|
+
<type>
|
302
|
+
<code value="update"/>
|
303
|
+
</type>
|
304
|
+
<resource value="DiagnosticOrder"/>
|
305
|
+
<description value="Step 1.1 - Create DiagnosticOrder do-300 with client assigned resource id."/>
|
306
|
+
<accept value="xml"/>
|
307
|
+
<contentType value="xml"/>
|
308
|
+
<params value="/${do-300-resourceId}"/>
|
309
|
+
<sourceId value="do-300"/>
|
310
|
+
</operation>
|
311
|
+
</action>
|
312
|
+
<action>
|
313
|
+
<assert>
|
314
|
+
<description value="Confirm that the returned HTTP status is either 200(OK) or 201(CREATED)."/>
|
315
|
+
<operator value="in"/>
|
316
|
+
<responseCode value="200,201"/>
|
317
|
+
</assert>
|
318
|
+
</action>
|
319
|
+
<action>
|
320
|
+
<assert>
|
321
|
+
<description value="Confirm that the returned format is XML. Warning only until this TestScript has been verified accurate."/>
|
322
|
+
<contentType value="xml"/>
|
323
|
+
<warningOnly value="true"/>
|
324
|
+
</assert>
|
325
|
+
</action>
|
326
|
+
<action>
|
327
|
+
<operation>
|
328
|
+
<type>
|
329
|
+
<code value="update"/>
|
330
|
+
</type>
|
331
|
+
<resource value="Order"/>
|
332
|
+
<description value="Step 1.2 - Create Order order-300 with client assigned resource id."/>
|
333
|
+
<accept value="xml"/>
|
334
|
+
<contentType value="xml"/>
|
335
|
+
<params value="/${order-300-resourceId}"/>
|
336
|
+
<sourceId value="order-300"/>
|
337
|
+
</operation>
|
338
|
+
</action>
|
339
|
+
<action>
|
340
|
+
<assert>
|
341
|
+
<description value="Confirm that the returned HTTP status is either 200(OK) or 201(CREATED)."/>
|
342
|
+
<operator value="in"/>
|
343
|
+
<responseCode value="200,201"/>
|
344
|
+
</assert>
|
345
|
+
</action>
|
346
|
+
<action>
|
347
|
+
<assert>
|
348
|
+
<description value="Confirm that the returned format is XML. Warning only until this TestScript has been verified accurate."/>
|
349
|
+
<contentType value="xml"/>
|
350
|
+
<warningOnly value="true"/>
|
351
|
+
</assert>
|
352
|
+
</action>
|
353
|
+
</test>
|
354
|
+
<test id="Step2-AcceptNewLabOrder">
|
355
|
+
<name value="Step2-AcceptNewLabOrder"/>
|
356
|
+
<description value="Fulfillment Client monitors OM server for Order resources (and changes to them) assigned to them via poll, Fulfillment Client posts OrderResponse to OM Server referencing Order and agreeing to fulfill DiagnosticOrder , and Order Client monitors OM Server for OrderResponse resources pointing to Orders they own via polling. and gets OrderResponse as part of query response "/>
|
357
|
+
<action>
|
358
|
+
<operation>
|
359
|
+
<type>
|
360
|
+
<code value="read"/>
|
361
|
+
</type>
|
362
|
+
<resource value="Order"/>
|
363
|
+
<description value="Step 2.1 - Fulfillment Client reads assigned Order order-300."/>
|
364
|
+
<accept value="xml"/>
|
365
|
+
<contentType value="xml"/>
|
366
|
+
<params value="/${order-300-resourceId}"/>
|
367
|
+
</operation>
|
368
|
+
</action>
|
369
|
+
<action>
|
370
|
+
<assert>
|
371
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
372
|
+
<response value="okay"/>
|
373
|
+
</assert>
|
374
|
+
</action>
|
375
|
+
<action>
|
376
|
+
<operation>
|
377
|
+
<type>
|
378
|
+
<code value="update"/>
|
379
|
+
</type>
|
380
|
+
<resource value="OrderResponse"/>
|
381
|
+
<description value="Step 2.2 - Fulfillment Client posts OrderResponse ordresp-300 to OM Server referencing Order and agreeing to fulfill DiagnosticOrder do-300."/>
|
382
|
+
<accept value="xml"/>
|
383
|
+
<contentType value="xml"/>
|
384
|
+
<params value="/${ordresp-300-resourceId}"/>
|
385
|
+
<sourceId value="ordresp-300"/>
|
386
|
+
</operation>
|
387
|
+
</action>
|
388
|
+
<action>
|
389
|
+
<assert>
|
390
|
+
<description value="Confirm that the returned HTTP status is either 200(OK) or 201(CREATED)."/>
|
391
|
+
<operator value="in"/>
|
392
|
+
<responseCode value="200,201"/>
|
393
|
+
</assert>
|
394
|
+
</action>
|
395
|
+
<action>
|
396
|
+
<assert>
|
397
|
+
<description value="Confirm that the returned format is XML. Warning only until this TestScript has been verified accurate."/>
|
398
|
+
<contentType value="xml"/>
|
399
|
+
<warningOnly value="true"/>
|
400
|
+
</assert>
|
401
|
+
</action>
|
402
|
+
<action>
|
403
|
+
<operation>
|
404
|
+
<type>
|
405
|
+
<code value="search"/>
|
406
|
+
</type>
|
407
|
+
<resource value="OrderResponse"/>
|
408
|
+
<description value="Step 2.3 - Order Client monitors (searches) OM Server for OrderResponse resources pointing to Orders they own via polling and gets OrderResponse ordresp-300 as part of query response."/>
|
409
|
+
<accept value="xml"/>
|
410
|
+
<contentType value="xml"/>
|
411
|
+
<params value="?request=Order/${order-300-resourceId}&code=accepted"/>
|
412
|
+
</operation>
|
413
|
+
</action>
|
414
|
+
<action>
|
415
|
+
<assert>
|
416
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
417
|
+
<response value="okay"/>
|
418
|
+
</assert>
|
419
|
+
</action>
|
420
|
+
<action>
|
421
|
+
<assert>
|
422
|
+
<description value="Confirm that the returned format is XML. Warning only until this TestScript has been verified accurate."/>
|
423
|
+
<contentType value="xml"/>
|
424
|
+
<warningOnly value="true"/>
|
425
|
+
</assert>
|
426
|
+
</action>
|
427
|
+
<action>
|
428
|
+
<assert>
|
429
|
+
<description value="Confirm that the returned resource type is Bundle. Warning only until this TestScript has been verified accurate."/>
|
430
|
+
<resource value="Bundle"/>
|
431
|
+
<warningOnly value="true"/>
|
432
|
+
</assert>
|
433
|
+
</action>
|
434
|
+
<action>
|
435
|
+
<assert>
|
436
|
+
<description value="Confirm that there is at least one record returned. There could be other order response records returned. Warning only until this TestScript has been verified accurate."/>
|
437
|
+
<operator value="greaterThan"/>
|
438
|
+
<path value="/Bundle/total"/>
|
439
|
+
<value value="0"/>
|
440
|
+
<warningOnly value="true"/>
|
441
|
+
</assert>
|
442
|
+
</action>
|
443
|
+
<action>
|
444
|
+
<assert>
|
445
|
+
<description value="Confirm that bundle contains the first OrderResponse. Warning only until this TestScript has been verified accurate."/>
|
446
|
+
<operator value="equals"/>
|
447
|
+
<path value="OrderResponse/id"/>
|
448
|
+
<value value="ordresp-300"/>
|
449
|
+
<warningOnly value="true"/>
|
450
|
+
</assert>
|
451
|
+
</action>
|
452
|
+
</test>
|
453
|
+
<test id="Step3-FulfillLabOrder">
|
454
|
+
<name value="Step3-FulfillLabOrder"/>
|
455
|
+
<description value=" Fulfillment Client posts DiagnosticReport to OM Server referencing DiagnosticOrder, Fulfillment Client posts OrderResponse referencing the DiagnosticReport and Order and indicating they believe order is fulfilled to the OM Server. "/>
|
456
|
+
<action>
|
457
|
+
<operation>
|
458
|
+
<type>
|
459
|
+
<code value="update"/>
|
460
|
+
</type>
|
461
|
+
<resource value="DiagnosticReport"/>
|
462
|
+
<description value="Step 3.1 - Fulfillment Client posts DiagnosticReport dr-300 to OM Server referencing DiagnosticOrder do-300."/>
|
463
|
+
<accept value="xml"/>
|
464
|
+
<contentType value="xml"/>
|
465
|
+
<params value="/${dr-300-resourceId}"/>
|
466
|
+
<sourceId value="dr-300"/>
|
467
|
+
</operation>
|
468
|
+
</action>
|
469
|
+
<action>
|
470
|
+
<assert>
|
471
|
+
<description value="Confirm that the returned HTTP status is either 200(OK) or 201(CREATED)."/>
|
472
|
+
<operator value="in"/>
|
473
|
+
<responseCode value="200,201"/>
|
474
|
+
</assert>
|
475
|
+
</action>
|
476
|
+
<action>
|
477
|
+
<assert>
|
478
|
+
<description value="Confirm that the returned format is XML. Warning only until this TestScript has been verified accurate."/>
|
479
|
+
<contentType value="xml"/>
|
480
|
+
<warningOnly value="true"/>
|
481
|
+
</assert>
|
482
|
+
</action>
|
483
|
+
<action>
|
484
|
+
<operation>
|
485
|
+
<type>
|
486
|
+
<code value="update"/>
|
487
|
+
</type>
|
488
|
+
<resource value="OrderResponse"/>
|
489
|
+
<description value="Step 3.2 - Fulfillment Client posts OrderResponse referencing the DiagnosticReport and Order and indicating they believe order is fulfilled to the OM Server."/>
|
490
|
+
<accept value="xml"/>
|
491
|
+
<contentType value="xml"/>
|
492
|
+
<params value="/${ordresp-310-resourceId}"/>
|
493
|
+
<sourceId value="ordresp-310"/>
|
494
|
+
</operation>
|
495
|
+
</action>
|
496
|
+
<action>
|
497
|
+
<assert>
|
498
|
+
<description value="Confirm that the returned HTTP status is either 200(OK) or 201(CREATED)."/>
|
499
|
+
<operator value="in"/>
|
500
|
+
<responseCode value="200,201"/>
|
501
|
+
</assert>
|
502
|
+
</action>
|
503
|
+
<action>
|
504
|
+
<assert>
|
505
|
+
<description value="Confirm that the returned format is XML. Warning only until this TestScript has been verified accurate."/>
|
506
|
+
<contentType value="xml"/>
|
507
|
+
<warningOnly value="true"/>
|
508
|
+
</assert>
|
509
|
+
</action>
|
510
|
+
</test>
|
511
|
+
<test id="Step4-ReceiveLabResults">
|
512
|
+
<name value="Step4-ReceiveLabResults"/>
|
513
|
+
<description value=" Order Client monitors OM Server for OrderResponse resources pointing to Orders they own via polling. Order Client gets 2nd OrderResponse as part of query. Order Client retrieves DiagnosticReport. Order Client updates DiagnosticOrder to indicate they are completed."/>
|
514
|
+
<action>
|
515
|
+
<operation>
|
516
|
+
<type>
|
517
|
+
<code value="search"/>
|
518
|
+
</type>
|
519
|
+
<resource value="OrderResponse"/>
|
520
|
+
<description value="Step 4.1 - Order Client monitors OM Server for OrderResponse resources pointing to Orders they own via polling. Order Client gets 2nd OrderResponse as part of query."/>
|
521
|
+
<accept value="xml"/>
|
522
|
+
<contentType value="xml"/>
|
523
|
+
<params value="?request=Order/${order-300-resourceId}&code=completed"/>
|
524
|
+
<!--is this a chained request on OR-->
|
525
|
+
</operation>
|
526
|
+
</action>
|
527
|
+
<action>
|
528
|
+
<assert>
|
529
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
530
|
+
<response value="okay"/>
|
531
|
+
</assert>
|
532
|
+
</action>
|
533
|
+
<action>
|
534
|
+
<assert>
|
535
|
+
<description value="Confirm that the returned format is XML. Warning only until this TestScript has been verified accurate."/>
|
536
|
+
<contentType value="xml"/>
|
537
|
+
<warningOnly value="true"/>
|
538
|
+
</assert>
|
539
|
+
</action>
|
540
|
+
<action>
|
541
|
+
<assert>
|
542
|
+
<description value="Confirm that the returned resource type is Bundle. Warning only until this TestScript has been verified accurate."/>
|
543
|
+
<resource value="Bundle"/>
|
544
|
+
<warningOnly value="true"/>
|
545
|
+
</assert>
|
546
|
+
</action>
|
547
|
+
<action>
|
548
|
+
<assert>
|
549
|
+
<description value="Confirm that there is at least one record returned. There could be other order response records returned. Warning only until this TestScript has been verified accurate."/>
|
550
|
+
<operator value="greaterThan"/>
|
551
|
+
<path value="/Bundle/total"/>
|
552
|
+
<value value="0"/>
|
553
|
+
<warningOnly value="true"/>
|
554
|
+
</assert>
|
555
|
+
</action>
|
556
|
+
<action>
|
557
|
+
<assert>
|
558
|
+
<description value="Confirm that bundle contains the second OrderResponse. Warning only until this TestScript has been verified accurate."/>
|
559
|
+
<operator value="equals"/>
|
560
|
+
<path value="OrderResponse/id"/>
|
561
|
+
<value value="ordresp-310"/>
|
562
|
+
<warningOnly value="true"/>
|
563
|
+
</assert>
|
564
|
+
</action>
|
565
|
+
<action>
|
566
|
+
<operation>
|
567
|
+
<type>
|
568
|
+
<code value="read"/>
|
569
|
+
</type>
|
570
|
+
<resource value="DiagnosticReport"/>
|
571
|
+
<description value="Step 4.2 - Order Client retrieves DiagnosticReport."/>
|
572
|
+
<accept value="xml"/>
|
573
|
+
<contentType value="xml"/>
|
574
|
+
<params value="/${dr-300-resourceId}"/>
|
575
|
+
</operation>
|
576
|
+
</action>
|
577
|
+
<action>
|
578
|
+
<assert>
|
579
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
580
|
+
<response value="okay"/>
|
581
|
+
</assert>
|
582
|
+
</action>
|
583
|
+
<action>
|
584
|
+
<operation>
|
585
|
+
<type>
|
586
|
+
<code value="update"/>
|
587
|
+
</type>
|
588
|
+
<resource value="DiagnosticOrder"/>
|
589
|
+
<description value="Step 4.3 - Order Client updates DiagnosticOrder to indicate they are completed."/>
|
590
|
+
<accept value="xml"/>
|
591
|
+
<contentType value="xml"/>
|
592
|
+
<params value="/${do-300-resourceId}"/>
|
593
|
+
<sourceId value="do-300-update"/>
|
594
|
+
|
595
|
+
</operation>
|
596
|
+
</action>
|
597
|
+
<action>
|
598
|
+
<assert>
|
599
|
+
<description value="Confirm that the returned HTTP status is either 200(OK) or 201(CREATED)."/>
|
600
|
+
<operator value="in"/>
|
601
|
+
<responseCode value="200,201"/>
|
602
|
+
</assert>
|
603
|
+
</action>
|
604
|
+
<action>
|
605
|
+
<assert>
|
606
|
+
<description value="Confirm that the returned format is XML. Warning only until this TestScript has been verified accurate."/>
|
607
|
+
<contentType value="xml"/>
|
608
|
+
<warningOnly value="true"/>
|
609
|
+
</assert>
|
610
|
+
</action>
|
611
|
+
</test>
|
612
|
+
</TestScript>
|