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
data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/track9-patch-peer2peer-patient-json.xml
ADDED
@@ -0,0 +1,235 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<TestScript xmlns="http://hl7.org/fhir">
|
3
|
+
<id value="track9-patch-peer2peer-patient-json"/>
|
4
|
+
|
5
|
+
<url value="http://wildfhir.aegis.net/fhir/TestScript/track9-patch-peer2peer-patient-json"/>
|
6
|
+
<name value="FHIR Connectathon 11 - Track 9 - Patch - Peer to peer test of PATCH for Patient"/>
|
7
|
+
<status value="draft"/>
|
8
|
+
<publisher value="Cerner, AEGIS.net, Inc."/>
|
9
|
+
<contact>
|
10
|
+
<name value="Dennis Patterson"/>
|
11
|
+
<telecom>
|
12
|
+
<system value="email"/>
|
13
|
+
<value value="dennis.patterson@cerner.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="2016-01-07"/>
|
26
|
+
<description value="FHIR Connectathon 11 - Track 9 - Patch - Peer to peer test of PATCH to update the Patient.active value. The client will first perform a Patient search by name to the destination server. Then the client will update the first returned Patient in the returned searchset setting the Patient.active value to false."/>
|
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="Patient Read, Search and Patch Operations"/>
|
35
|
+
<copyright value="© Cerner 2015+, © AEGIS.net, Inc. 2015+"/>
|
36
|
+
|
37
|
+
<metadata>
|
38
|
+
<capability>
|
39
|
+
<required value="true"/>
|
40
|
+
<description value="Patient read, search and patch operations - patch is currently experimental so there is no formal definition within the conformance statement at this time."/>
|
41
|
+
<destination value="1"/>
|
42
|
+
<link value="http://hl7.org/fhir/http.html#read"/>
|
43
|
+
<link value="http://hl7.org/fhir/http.html#search"/>
|
44
|
+
<link value="http://hl7.org/fhir/http.html#update"/>
|
45
|
+
<conformance>
|
46
|
+
<reference value="/Connectathon11/Track9-Patch/_reference/conformance/PatientSearchType.xml" />
|
47
|
+
</conformance>
|
48
|
+
</capability>
|
49
|
+
</metadata>
|
50
|
+
|
51
|
+
<origin>
|
52
|
+
<index value="1" />
|
53
|
+
<profile value="FHIR-DSTU2-Client" />
|
54
|
+
</origin>
|
55
|
+
<destination>
|
56
|
+
<index value="1" />
|
57
|
+
<profile value="FHIR-DSTU2-Server" />
|
58
|
+
</destination>
|
59
|
+
|
60
|
+
<variable>
|
61
|
+
<name value="patientId"/>
|
62
|
+
<path value="Patient/id" />
|
63
|
+
<sourceId value="patient-search-response"/>
|
64
|
+
</variable>
|
65
|
+
|
66
|
+
<test id="Step1-SearchForPatient">
|
67
|
+
<name value="Step1-SearchForPatient"/>
|
68
|
+
<description value="Search for Patients using the criteria name=Chalmers. The first returned Patient will be the one that receives the patch operation."/>
|
69
|
+
|
70
|
+
<action>
|
71
|
+
<operation>
|
72
|
+
<type>
|
73
|
+
<code value="search"/>
|
74
|
+
</type>
|
75
|
+
<resource value="Patient"/>
|
76
|
+
<description value="Search for Patients using the criteria name=Chalmers."/>
|
77
|
+
<accept value="json"/>
|
78
|
+
<contentType value="json"/>
|
79
|
+
<destination value="1" />
|
80
|
+
<origin value="1" />
|
81
|
+
<params value="?name=Chalmers"/>
|
82
|
+
<responseId value="patient-search-response" />
|
83
|
+
</operation>
|
84
|
+
</action>
|
85
|
+
<action>
|
86
|
+
<assert>
|
87
|
+
<description value="Confirm that the client requested a Content-Type of json."/>
|
88
|
+
<direction value="request"/>
|
89
|
+
<headerField value="Content-Type"/>
|
90
|
+
<operator value="contains"/>
|
91
|
+
<value value="json"/>
|
92
|
+
</assert>
|
93
|
+
</action>
|
94
|
+
<action>
|
95
|
+
<assert>
|
96
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
97
|
+
<direction value="response"/>
|
98
|
+
<response value="okay"/>
|
99
|
+
</assert>
|
100
|
+
</action>
|
101
|
+
<action>
|
102
|
+
<assert>
|
103
|
+
<description value="Confirm that the returned format is JSON."/>
|
104
|
+
<direction value="response"/>
|
105
|
+
<contentType value="json"/>
|
106
|
+
</assert>
|
107
|
+
</action>
|
108
|
+
<action>
|
109
|
+
<assert>
|
110
|
+
<description value="Confirm that the returned resource type is Bundle."/>
|
111
|
+
<direction value="response"/>
|
112
|
+
<resource value="Bundle"/>
|
113
|
+
</assert>
|
114
|
+
</action>
|
115
|
+
<action>
|
116
|
+
<assert>
|
117
|
+
<description value="Confirm that there is at least one record returned. There could be other Patient records returned."/>
|
118
|
+
<direction value="response"/>
|
119
|
+
<operator value="greaterThan"/>
|
120
|
+
<path value="/Bundle/total"/>
|
121
|
+
<value value="0"/>
|
122
|
+
</assert>
|
123
|
+
</action>
|
124
|
+
</test>
|
125
|
+
|
126
|
+
<test id="Step2-PatchPatient">
|
127
|
+
<name value="Step2-PatchPatient"/>
|
128
|
+
<description value="Update the Patient active value to false using PATCH"/>
|
129
|
+
|
130
|
+
<action>
|
131
|
+
<operation>
|
132
|
+
<type>
|
133
|
+
<code value="patch"/>
|
134
|
+
</type>
|
135
|
+
<resource value="Patient"/>
|
136
|
+
<accept value="json"/>
|
137
|
+
<contentType value="json"/>
|
138
|
+
<destination value="1" />
|
139
|
+
<origin value="1" />
|
140
|
+
<params value="/${patientId}" />
|
141
|
+
</operation>
|
142
|
+
</action>
|
143
|
+
<action>
|
144
|
+
<assert>
|
145
|
+
<description value="Confirm that the client requested an Accept of json."/>
|
146
|
+
<direction value="request"/>
|
147
|
+
<headerField value="Accept"/>
|
148
|
+
<operator value="contains"/>
|
149
|
+
<value value="json"/>
|
150
|
+
</assert>
|
151
|
+
</action>
|
152
|
+
<action>
|
153
|
+
<assert>
|
154
|
+
<description value="Confirm that the client requested a Content-Type of json."/>
|
155
|
+
<direction value="request"/>
|
156
|
+
<headerField value="Content-Type"/>
|
157
|
+
<operator value="contains"/>
|
158
|
+
<value value="json"/>
|
159
|
+
</assert>
|
160
|
+
</action>
|
161
|
+
<action>
|
162
|
+
<assert>
|
163
|
+
<description value="Confirm that the patch operation is a replace."/>
|
164
|
+
<direction value="request" />
|
165
|
+
<path value="$[0].op"/>
|
166
|
+
<value value="replace"/>
|
167
|
+
</assert>
|
168
|
+
</action>
|
169
|
+
<action>
|
170
|
+
<assert>
|
171
|
+
<description value="Confirm that the patch is replacing the active element value."/>
|
172
|
+
<direction value="request" />
|
173
|
+
<path value="$[0].path"/>
|
174
|
+
<value value="/active"/>
|
175
|
+
</assert>
|
176
|
+
</action>
|
177
|
+
<action>
|
178
|
+
<assert>
|
179
|
+
<description value="Confirm that the patch is setting the status value to completed."/>
|
180
|
+
<direction value="request" />
|
181
|
+
<path value="$[0]/value"/>
|
182
|
+
<value value="false"/>
|
183
|
+
</assert>
|
184
|
+
</action>
|
185
|
+
<action>
|
186
|
+
<assert>
|
187
|
+
<description value="Confirm that the returned HTTP status is 200(OK) or 204(NO CONTENT)."/>
|
188
|
+
<direction value="response"/>
|
189
|
+
<operator value="in"/>
|
190
|
+
<responseCode value="200,204"/>
|
191
|
+
</assert>
|
192
|
+
</action>
|
193
|
+
|
194
|
+
<action>
|
195
|
+
<operation>
|
196
|
+
<type>
|
197
|
+
<code value="read"/>
|
198
|
+
</type>
|
199
|
+
<resource value="Patient"/>
|
200
|
+
<description value="Read the patched Patient back to verify contents."/>
|
201
|
+
<accept value="json"/>
|
202
|
+
<contentType value="json"/>
|
203
|
+
<destination value="1" />
|
204
|
+
<params value="/${patientId}" />
|
205
|
+
</operation>
|
206
|
+
</action>
|
207
|
+
<action>
|
208
|
+
<assert>
|
209
|
+
<description value="Confirm that the returned HTTP status is 200(OK)."/>
|
210
|
+
<response value="okay"/>
|
211
|
+
</assert>
|
212
|
+
</action>
|
213
|
+
<action>
|
214
|
+
<assert>
|
215
|
+
<description value="Confirm that the returned format is JSON."/>
|
216
|
+
<contentType value="json"/>
|
217
|
+
</assert>
|
218
|
+
</action>
|
219
|
+
<action>
|
220
|
+
<assert>
|
221
|
+
<description value="Confirm that the returned resource type is Patient."/>
|
222
|
+
<resource value="Patient"/>
|
223
|
+
</assert>
|
224
|
+
</action>
|
225
|
+
<action>
|
226
|
+
<assert>
|
227
|
+
<description value="Confirm that response contains the updated Patient. Warning only until this TestScript has been verified accurate."/>
|
228
|
+
<operator value="equals"/>
|
229
|
+
<path value="Patient/active"/>
|
230
|
+
<value value="false"/>
|
231
|
+
<warningOnly value="true"/>
|
232
|
+
</assert>
|
233
|
+
</action>
|
234
|
+
</test>
|
235
|
+
</TestScript>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "plan_executor"
|
5
|
+
s.summary = "A Gem for handling FHIR test executions"
|
6
|
+
s.description = "A Gem for handling FHIR test executions"
|
7
|
+
s.email = "aquina@mitre.org"
|
8
|
+
s.homepage = "https://github.com/hl7-fhir/fhir-svn"
|
9
|
+
s.authors = ["Andre Quina", "Jason Walonoski", "Janoo Fernandes", "Michael O'Keefe", "Robert Scanlon"]
|
10
|
+
s.version = '1.0.2'
|
11
|
+
s.license = 'Apache-2.0'
|
12
|
+
|
13
|
+
s.files = s.files = `git ls-files`.split("\n")
|
14
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<Bundle xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="urn:uuid:744443410ff447a2a11dc191b4e0ab9b" />
|
3
|
+
<meta>
|
4
|
+
<lastUpdated value="2016-03-14T19:45:15.953+00:00" />
|
5
|
+
</meta>
|
6
|
+
<type value="searchset" />
|
7
|
+
<total value="2" />
|
8
|
+
<entry>
|
9
|
+
<resource>
|
10
|
+
<DiagnosticReport>
|
11
|
+
<id value="692-luk" />
|
12
|
+
<status value="final" />
|
13
|
+
<category>
|
14
|
+
<coding>
|
15
|
+
<system value="http://hl7.org/fhir/v2/0074"/>
|
16
|
+
<code value="CH"/>
|
17
|
+
<display value="Chemistry"/>
|
18
|
+
</coding>
|
19
|
+
<text value="Chemistry"
|
20
|
+
</category>
|
21
|
+
<code>
|
22
|
+
<coding>
|
23
|
+
<system value="http://loinc.org"/>
|
24
|
+
<code value="24323-8"/>
|
25
|
+
<display value="Comprehensive metabolic 2000 panel - Serum or Plasma"/>
|
26
|
+
</coding>
|
27
|
+
<text value="Comprehensive metabolic 2000 panel - Serum or Plasma"
|
28
|
+
</code>
|
29
|
+
<subject>
|
30
|
+
<reference value="Patient/1186747" />
|
31
|
+
</subject>
|
32
|
+
<encounter>
|
33
|
+
<reference value="Encounter/691" />
|
34
|
+
</encounter>
|
35
|
+
<effectiveDateTime value="1999-07-02"/>
|
36
|
+
<result>
|
37
|
+
<reference value="#r10"/>
|
38
|
+
</result>
|
39
|
+
<issued value="2011-03-04T11:45:33+11:00"/>
|
40
|
+
<performer>
|
41
|
+
<reference value="Organization/1832473e-2fe0-452d-abe9-3cdb9879522f"/>
|
42
|
+
<display value="Acme Laboratory, Inc"/>
|
43
|
+
</performer>
|
44
|
+
</DiagnosticReport>
|
45
|
+
</resource>
|
46
|
+
<request>
|
47
|
+
<method value="POST" />
|
48
|
+
<url value="DiagnosticReport/7c9f231034214f4bab08293c6deb1c60/_history/1" />
|
49
|
+
</request>
|
50
|
+
</entry>
|
51
|
+
</Bundle>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<Bundle xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="urn:uuid:744443410ff447a2a11dc191b4e0ab9b" />
|
3
|
+
<meta>
|
4
|
+
<lastUpdated value="2016-03-14T19:45:15.953+00:00" />
|
5
|
+
</meta>
|
6
|
+
<type value="searchset" />
|
7
|
+
<total value="2" />
|
8
|
+
<entry>
|
9
|
+
<resource>
|
10
|
+
<Observation>
|
11
|
+
<id value="692-luk" />
|
12
|
+
<status value="final" />
|
13
|
+
<category>
|
14
|
+
<coding>
|
15
|
+
<system value="http://hl7.org/fhir/observation-category"/>
|
16
|
+
<code value="laboratory"/>
|
17
|
+
<display value="laboratory"/>
|
18
|
+
</coding>
|
19
|
+
<text value="laboratory"
|
20
|
+
</category>
|
21
|
+
<code>
|
22
|
+
<coding>
|
23
|
+
<system value="http://loinc.org"/>
|
24
|
+
<code value="6690-2"/>
|
25
|
+
<display value="Leukocytes"/>
|
26
|
+
</coding>
|
27
|
+
<text value="Leukocytes"
|
28
|
+
</code>
|
29
|
+
<subject>
|
30
|
+
<reference value="Patient/1186747" />
|
31
|
+
</subject>
|
32
|
+
<encounter>
|
33
|
+
<reference value="Encounter/691" />
|
34
|
+
</encounter>
|
35
|
+
<effectiveDateTime value="1999-07-02"/>
|
36
|
+
<valueQuantity>
|
37
|
+
<value value="109" />
|
38
|
+
<unit value="10*3/uL" />
|
39
|
+
<system value="http://unitsofmeasure.org" />
|
40
|
+
<code value="10*3/uL"/>
|
41
|
+
</valueQuantity>
|
42
|
+
</Observation>
|
43
|
+
</resource>
|
44
|
+
<request>
|
45
|
+
<method value="POST" />
|
46
|
+
<url value="Observation/7c9f231034214f4bab08293c6deb1c60/_history/1" />
|
47
|
+
</request>
|
48
|
+
</entry>
|
49
|
+
</Bundle>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
{
|
2
|
+
"resourceType": "Bundle",
|
3
|
+
"id": "urn:uuid:2cd8aebe31ed452cadb632c456bc403e",
|
4
|
+
"meta": {
|
5
|
+
"lastUpdated": "2016-03-15T14:15:50.981+00:00"
|
6
|
+
},
|
7
|
+
"type": "searchset",
|
8
|
+
"total": 3910,
|
9
|
+
"link": [
|
10
|
+
{
|
11
|
+
"relation": "self",
|
12
|
+
"url": "http://sqlonfhir-dstu2.azurewebsites.net/fhir/Observation?_count=1&_format=application/json+fhir&_snapshot=635936481509815696"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"relation": "first",
|
16
|
+
"url": "http://sqlonfhir-dstu2.azurewebsites.net/fhir/Observation?_count=1&_format=application/json+fhir&_snapshot=635936481509815696"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"relation": "next",
|
20
|
+
"url": "http://sqlonfhir-dstu2.azurewebsites.net/fhir/Observation?_count=1&_format=application/json+fhir&_snapshot=635936481509815696&_page=1"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"relation": "last",
|
24
|
+
"url": "http://sqlonfhir-dstu2.azurewebsites.net/fhir/Observation?_count=1&_format=application/json+fhir&_snapshot=635936481509815696&_page=3910"
|
25
|
+
}
|
26
|
+
],
|
27
|
+
"entry": [
|
28
|
+
{
|
29
|
+
"fullUrl": "http://sqlonfhir-dstu2.azurewebsites.net/fhir/Observation/7c9f231034214f4bab08293c6deb1c60/_history/1",
|
30
|
+
"resource": {
|
31
|
+
"resourceType": "Observation",
|
32
|
+
"id": "7c9f231034214f4bab08293c6deb1c60",
|
33
|
+
"meta": {
|
34
|
+
"versionId": "1",
|
35
|
+
"lastUpdated": "2016-03-08T19:19:27.65+00:00"
|
36
|
+
},
|
37
|
+
"status": "final",
|
38
|
+
"code": {
|
39
|
+
"coding": [
|
40
|
+
{
|
41
|
+
"system": "http://loinc.org",
|
42
|
+
"code": "3141-9"
|
43
|
+
}
|
44
|
+
]
|
45
|
+
},
|
46
|
+
"subject": {
|
47
|
+
"reference": "Patient/748e719b1095417c9147c9bc33c29681"
|
48
|
+
},
|
49
|
+
"valueQuantity": {
|
50
|
+
"value": 500,
|
51
|
+
"unit": "kg",
|
52
|
+
"system": "http://unitsofmeasure.org"
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"request": {
|
56
|
+
"method": "POST",
|
57
|
+
"url": "Observation/7c9f231034214f4bab08293c6deb1c60/_history/1"
|
58
|
+
}
|
59
|
+
}
|
60
|
+
]
|
61
|
+
}
|
@@ -0,0 +1,202 @@
|
|
1
|
+
<TestScript xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="ExampleTestScript"/>
|
3
|
+
<url value="http://hl7.org/fhir/TestScript/example"/>
|
4
|
+
<version value="1.0"/>
|
5
|
+
<name value="Test Script 1"/>
|
6
|
+
<status value="draft"/>
|
7
|
+
<identifier>
|
8
|
+
<system value="urn:ietf:rfc:3986"/>
|
9
|
+
<value value="urn:oid:1.3.6.1.4.1.21367.2005.3.7.9876"/>
|
10
|
+
</identifier>
|
11
|
+
<experimental value="true"/>
|
12
|
+
<publisher value="HL7"/>
|
13
|
+
<contact>
|
14
|
+
<name value="Support"/>
|
15
|
+
<telecom>
|
16
|
+
<system value="email"/>
|
17
|
+
<value value="support@gmail.com"/>
|
18
|
+
<use value="temp"/>
|
19
|
+
</telecom>
|
20
|
+
</contact>
|
21
|
+
<date value="2015-08-31"/>
|
22
|
+
<description value="Example Test Script"/>
|
23
|
+
<useContext>
|
24
|
+
<coding>
|
25
|
+
<system value="urn:iso:std:iso:3166"/>
|
26
|
+
<code value="US"/>
|
27
|
+
<display value="United States of America (the)"/>
|
28
|
+
</coding>
|
29
|
+
</useContext>
|
30
|
+
<requirements value="Patient Create, Read, and Update Operations"/>
|
31
|
+
<copyright value="© HL7.org 2011+"/>
|
32
|
+
<contained>
|
33
|
+
<Conformance xmlns="http://hl7.org/fhir">
|
34
|
+
<id value="conf1"/>
|
35
|
+
<date value="2012-01-04"/>
|
36
|
+
<kind value="instance"/>
|
37
|
+
<fhirVersion value="1.0.0"/>
|
38
|
+
<acceptUnknown value="both"/>
|
39
|
+
<format value="xml"/>
|
40
|
+
<format value="json"/>
|
41
|
+
<rest>
|
42
|
+
<mode value="server"/>
|
43
|
+
<resource>
|
44
|
+
<type value="Patient"/>
|
45
|
+
<interaction>
|
46
|
+
<code value="read"/>
|
47
|
+
</interaction>
|
48
|
+
<interaction>
|
49
|
+
<code value="create"/>
|
50
|
+
</interaction>
|
51
|
+
<interaction>
|
52
|
+
<code value="delete"/>
|
53
|
+
</interaction>
|
54
|
+
</resource>
|
55
|
+
</rest>
|
56
|
+
</Conformance>
|
57
|
+
<Patient xmlns="http://hl7.org/fhir">
|
58
|
+
<id value="patient1"/>
|
59
|
+
<name>
|
60
|
+
<use value="official"/>
|
61
|
+
<family value="Doe"/>
|
62
|
+
<given value="John"/>
|
63
|
+
</name>
|
64
|
+
<birthDate value="1974-12-31" />
|
65
|
+
</Patient>
|
66
|
+
<Patient xmlns="http://hl7.org/fhir">
|
67
|
+
<id value="patient-min"/>
|
68
|
+
<name>
|
69
|
+
<use value="official"/>
|
70
|
+
<family value="Doe"/>
|
71
|
+
<given value="John"/>
|
72
|
+
</name>
|
73
|
+
</Patient>
|
74
|
+
</contained>
|
75
|
+
<metadata>
|
76
|
+
<capability>
|
77
|
+
<required value="true"/>
|
78
|
+
<description value="Patient Create, Read, and Update Operations"/>
|
79
|
+
<destination value="1"/>
|
80
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#create"/>
|
81
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#read"/>
|
82
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#update"/>
|
83
|
+
<conformance>
|
84
|
+
<reference value="#conf1"/>
|
85
|
+
</conformance>
|
86
|
+
</capability>
|
87
|
+
</metadata>
|
88
|
+
<fixture id="F1">
|
89
|
+
<autocreate value="false"/>
|
90
|
+
<autodelete value="true"/>
|
91
|
+
<resource>
|
92
|
+
<reference value="#patient1"/>
|
93
|
+
<display value="Patient resource"/>
|
94
|
+
</resource>
|
95
|
+
</fixture>
|
96
|
+
<fixture id="F1-min">
|
97
|
+
<autocreate value="false"/>
|
98
|
+
<autodelete value="false"/>
|
99
|
+
<resource>
|
100
|
+
<reference value="#patient-min"/>
|
101
|
+
<display value="Patient resource"/>
|
102
|
+
</resource>
|
103
|
+
</fixture>
|
104
|
+
<profile id="patient-profile">
|
105
|
+
<reference value="http://hl7.org/fhir/StructureDefinition/Patient"/>
|
106
|
+
</profile>
|
107
|
+
<setup>
|
108
|
+
<action>
|
109
|
+
<operation>
|
110
|
+
<type>
|
111
|
+
<code value="create"/>
|
112
|
+
</type>
|
113
|
+
<label value="SetupPatient"/>
|
114
|
+
<description value="Create patient resource on test server"/>
|
115
|
+
<accept value="json"/>
|
116
|
+
<responseId value="create-response"/>
|
117
|
+
<sourceId value="F1"/>
|
118
|
+
</operation>
|
119
|
+
</action>
|
120
|
+
<action>
|
121
|
+
<assert>
|
122
|
+
<direction value="request"/>
|
123
|
+
<responseCode value="201"/>
|
124
|
+
</assert>
|
125
|
+
</action>
|
126
|
+
</setup>
|
127
|
+
<test id="READ01">
|
128
|
+
<name value="Read Patient"/>
|
129
|
+
<description value="Read a patient and validate response."/>
|
130
|
+
<action>
|
131
|
+
<operation>
|
132
|
+
<type>
|
133
|
+
<code value="read"/>
|
134
|
+
</type>
|
135
|
+
<encodeRequestUrl value="false"/>
|
136
|
+
<responseId value="F1-read"/>
|
137
|
+
<targetId value="F1"/>
|
138
|
+
</operation>
|
139
|
+
</action>
|
140
|
+
<action>
|
141
|
+
<assert>
|
142
|
+
<label value="ReadOK"/>
|
143
|
+
<description value="Test for OK response"/>
|
144
|
+
<direction value="request"/>
|
145
|
+
<response value="okay"/>
|
146
|
+
</assert>
|
147
|
+
</action>
|
148
|
+
<action>
|
149
|
+
<assert>
|
150
|
+
<headerField value="Last-Modified"/>
|
151
|
+
<operator value="notEmpty"/>
|
152
|
+
<warningOnly value="true"/>
|
153
|
+
</assert>
|
154
|
+
</action>
|
155
|
+
<action>
|
156
|
+
<assert>
|
157
|
+
<resource value="Patient"/>
|
158
|
+
</assert>
|
159
|
+
</action>
|
160
|
+
<action>
|
161
|
+
<assert>
|
162
|
+
<validateProfileId value="patient-profile"/>
|
163
|
+
</assert>
|
164
|
+
</action>
|
165
|
+
<action>
|
166
|
+
<assert>
|
167
|
+
<operator value="equals"/>
|
168
|
+
<path value="fhir:Patient/fhir:name/fhir:family/@value"/>
|
169
|
+
<value value="Doe"/>
|
170
|
+
</assert>
|
171
|
+
</action>
|
172
|
+
<action>
|
173
|
+
<assert>
|
174
|
+
<operator value="equals"/>
|
175
|
+
<path value="fhir:Patient/fhir:name/fhir:family/@value"/>
|
176
|
+
<sourceId value="F1"/>
|
177
|
+
<value value="Doe"/>
|
178
|
+
</assert>
|
179
|
+
</action>
|
180
|
+
<action>
|
181
|
+
<assert>
|
182
|
+
<compareToSourceId value="F1-read"/>
|
183
|
+
<compareToSourcePath value="fhir:Patient/fhir:name/fhir:family/@value"/>
|
184
|
+
<operator value="equals"/>
|
185
|
+
<path value="fhir:Patient/fhir:name/fhir:family/@value"/>
|
186
|
+
</assert>
|
187
|
+
</action>
|
188
|
+
<action>
|
189
|
+
<assert>
|
190
|
+
<compareToSourceId value="F1-read"/>
|
191
|
+
<compareToSourcePath value="fhir:Patient/fhir:name/fhir:family/@value"/>
|
192
|
+
<path value="fhir:Patient/fhir:name/fhir:family/@value"/>
|
193
|
+
<sourceId value="F1"/>
|
194
|
+
</assert>
|
195
|
+
</action>
|
196
|
+
<action>
|
197
|
+
<assert>
|
198
|
+
<minimumId value="F1-min"/>
|
199
|
+
</assert>
|
200
|
+
</action>
|
201
|
+
</test>
|
202
|
+
</TestScript>
|