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,143 @@
|
|
1
|
+
<TestScript xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="HistoryTestScript"/>
|
3
|
+
<url value="http://hl7.org/fhir/TestScript/history"/>
|
4
|
+
<name value="History Test Script"/>
|
5
|
+
<status value="draft"/>
|
6
|
+
<description value="Test Script for history of the patient resource"/>
|
7
|
+
<contained>
|
8
|
+
<Conformance xmlns="http://hl7.org/fhir">
|
9
|
+
<id value="conf1"/>
|
10
|
+
<date value="2012-01-04"/>
|
11
|
+
<kind value="instance"/>
|
12
|
+
<fhirVersion value="1.0.0"/>
|
13
|
+
<acceptUnknown value="both"/>
|
14
|
+
<format value="xml"/>
|
15
|
+
<format value="json"/>
|
16
|
+
<rest>
|
17
|
+
<mode value="server"/>
|
18
|
+
<resource>
|
19
|
+
<type value="Patient"/>
|
20
|
+
<interaction>
|
21
|
+
<code value="create"/>
|
22
|
+
</interaction>
|
23
|
+
<interaction>
|
24
|
+
<code value="update"/>
|
25
|
+
</interaction>
|
26
|
+
<interaction>
|
27
|
+
<code value="history"/>
|
28
|
+
</interaction>
|
29
|
+
<interaction>
|
30
|
+
<code value="delete"/>
|
31
|
+
</interaction>
|
32
|
+
</resource>
|
33
|
+
</rest>
|
34
|
+
</Conformance>
|
35
|
+
<Patient xmlns="http://hl7.org/fhir">
|
36
|
+
<id value="patient-before"/>
|
37
|
+
<name>
|
38
|
+
<use value="official"/>
|
39
|
+
<family value="Chalmers"/>
|
40
|
+
<given value="Peter"/>
|
41
|
+
</name>
|
42
|
+
</Patient>
|
43
|
+
<Patient xmlns="http://hl7.org/fhir">
|
44
|
+
<id value="patient-after"/>
|
45
|
+
<name>
|
46
|
+
<use value="official"/>
|
47
|
+
<family value="Chalmers"/>
|
48
|
+
<given value="NotPeter"/>
|
49
|
+
</name>
|
50
|
+
</Patient>
|
51
|
+
</contained>
|
52
|
+
<metadata>
|
53
|
+
<capability>
|
54
|
+
<required value="true"/>
|
55
|
+
<description value="Patient Create, Read, Update, and Delete Operations"/>
|
56
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#create"/>
|
57
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#read"/>
|
58
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#update"/>
|
59
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#delete"/>
|
60
|
+
<conformance>
|
61
|
+
<reference value="#conf1"/>
|
62
|
+
</conformance>
|
63
|
+
</capability>
|
64
|
+
</metadata>
|
65
|
+
<fixture id="example-patient">
|
66
|
+
<resource>
|
67
|
+
<reference value="#patient-before"/>
|
68
|
+
</resource>
|
69
|
+
</fixture>
|
70
|
+
<fixture id="example-patient-updated">
|
71
|
+
<resource>
|
72
|
+
<reference value="#patient-after"/>
|
73
|
+
</resource>
|
74
|
+
</fixture>
|
75
|
+
<setup>
|
76
|
+
<action>
|
77
|
+
<operation>
|
78
|
+
<type>
|
79
|
+
<code value="create"/>
|
80
|
+
</type>
|
81
|
+
<sourceId value="example-patient"/>
|
82
|
+
</operation>
|
83
|
+
</action>
|
84
|
+
<action>
|
85
|
+
<operation>
|
86
|
+
<type>
|
87
|
+
<code value="update"/>
|
88
|
+
</type>
|
89
|
+
<sourceId value="example-patient-updated"/>
|
90
|
+
<targetId value="example-patient"/>
|
91
|
+
</operation>
|
92
|
+
</action>
|
93
|
+
</setup>
|
94
|
+
<test id="HISTORY01">
|
95
|
+
<name value="History for specific resource"/>
|
96
|
+
<description value="History for specific resource."/>
|
97
|
+
<metadata>
|
98
|
+
<capability>
|
99
|
+
<required value="true"/>
|
100
|
+
<description value="Patient History Operation"/>
|
101
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#history"/>
|
102
|
+
<conformance>
|
103
|
+
<reference value="#conf1"/>
|
104
|
+
</conformance>
|
105
|
+
</capability>
|
106
|
+
</metadata>
|
107
|
+
<action>
|
108
|
+
<operation>
|
109
|
+
<type>
|
110
|
+
<code value="history"/>
|
111
|
+
</type>
|
112
|
+
<targetId value="example-patient"/>
|
113
|
+
</operation>
|
114
|
+
</action>
|
115
|
+
<action>
|
116
|
+
<assert>
|
117
|
+
<response value="okay"/>
|
118
|
+
</assert>
|
119
|
+
</action>
|
120
|
+
<action>
|
121
|
+
<assert>
|
122
|
+
<resource value="Bundle"/>
|
123
|
+
</assert>
|
124
|
+
</action>
|
125
|
+
<action>
|
126
|
+
<assert>
|
127
|
+
<operator value="equals"/>
|
128
|
+
<path value="fhir:Bundle/fhir:total/@value"/>
|
129
|
+
<value value="2"/>
|
130
|
+
</assert>
|
131
|
+
</action>
|
132
|
+
</test>
|
133
|
+
<teardown>
|
134
|
+
<action>
|
135
|
+
<operation>
|
136
|
+
<type>
|
137
|
+
<code value="delete"/>
|
138
|
+
</type>
|
139
|
+
<targetId value="example-patient"/>
|
140
|
+
</operation>
|
141
|
+
</action>
|
142
|
+
</teardown>
|
143
|
+
</TestScript>
|
@@ -0,0 +1,272 @@
|
|
1
|
+
|
2
|
+
<TestScript xmlns="http://hl7.org/fhir">
|
3
|
+
<id value="ReadTestScript"/>
|
4
|
+
<url value="http://hl7.org/fhir/TestScript/ReadTestScript"/>
|
5
|
+
<name value="ReadTestScript"/>
|
6
|
+
<status value="draft"/>
|
7
|
+
<description value="TestScript for Sprinkler tests (R001, R002, R003, R004) for testing basic READ requests."/>
|
8
|
+
<contained>
|
9
|
+
<Conformance xmlns="http://hl7.org/fhir">
|
10
|
+
<id value="conf-overall"/>
|
11
|
+
<date value="2012-01-04"/>
|
12
|
+
<kind value="instance"/>
|
13
|
+
<fhirVersion value="1.0.0"/>
|
14
|
+
<acceptUnknown value="both"/>
|
15
|
+
<format value="xml"/>
|
16
|
+
<format value="json"/>
|
17
|
+
<rest>
|
18
|
+
<mode value="server"/>
|
19
|
+
<resource>
|
20
|
+
<type value="Patient"/>
|
21
|
+
<interaction>
|
22
|
+
<code value="read"/>
|
23
|
+
</interaction>
|
24
|
+
</resource>
|
25
|
+
</rest>
|
26
|
+
</Conformance>
|
27
|
+
<Conformance xmlns="http://hl7.org/fhir">
|
28
|
+
<id value="conf-r001-validates"/>
|
29
|
+
<date value="2012-01-04"/>
|
30
|
+
<kind value="instance"/>
|
31
|
+
<fhirVersion value="1.0.0"/>
|
32
|
+
<acceptUnknown value="both"/>
|
33
|
+
<format value="xml"/>
|
34
|
+
<rest>
|
35
|
+
<mode value="client"/>
|
36
|
+
<resource>
|
37
|
+
<type value="Patient"/>
|
38
|
+
<interaction>
|
39
|
+
<code value="read"/>
|
40
|
+
</interaction>
|
41
|
+
</resource>
|
42
|
+
</rest>
|
43
|
+
</Conformance>
|
44
|
+
<Conformance xmlns="http://hl7.org/fhir">
|
45
|
+
<id value="conf-r001-requires"/>
|
46
|
+
<date value="2012-01-04"/>
|
47
|
+
<kind value="instance"/>
|
48
|
+
<fhirVersion value="1.0.0"/>
|
49
|
+
<acceptUnknown value="both"/>
|
50
|
+
<format value="xml"/>
|
51
|
+
<rest>
|
52
|
+
<mode value="client"/>
|
53
|
+
<resource>
|
54
|
+
<type value="Patient"/>
|
55
|
+
<interaction>
|
56
|
+
<code value="read"/>
|
57
|
+
</interaction>
|
58
|
+
<interaction>
|
59
|
+
<code value="create"/>
|
60
|
+
</interaction>
|
61
|
+
<interaction>
|
62
|
+
<code value="delete"/>
|
63
|
+
</interaction>
|
64
|
+
</resource>
|
65
|
+
</rest>
|
66
|
+
</Conformance>
|
67
|
+
<Patient xmlns="http://hl7.org/fhir">
|
68
|
+
<id value="patient1"/>
|
69
|
+
</Patient>
|
70
|
+
</contained>
|
71
|
+
<metadata>
|
72
|
+
<capability>
|
73
|
+
<required value="true"/>
|
74
|
+
<validated value="true"/>
|
75
|
+
<description value="Patient Create, Read and Delete Operations"/>
|
76
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#create"/>
|
77
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#read"/>
|
78
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#delete"/>
|
79
|
+
<conformance>
|
80
|
+
<reference value="#conf-overall"/>
|
81
|
+
</conformance>
|
82
|
+
</capability>
|
83
|
+
</metadata>
|
84
|
+
<fixture id="F1">
|
85
|
+
<resource>
|
86
|
+
<reference value="#patient1"/>
|
87
|
+
<display value="Patient resource"/>
|
88
|
+
</resource>
|
89
|
+
</fixture>
|
90
|
+
<setup>
|
91
|
+
<action>
|
92
|
+
<operation>
|
93
|
+
<type>
|
94
|
+
<code value="create"/>
|
95
|
+
</type>
|
96
|
+
<sourceId value="F1"/>
|
97
|
+
</operation>
|
98
|
+
</action>
|
99
|
+
<action>
|
100
|
+
<assert>
|
101
|
+
<response value="created"/>
|
102
|
+
</assert>
|
103
|
+
</action>
|
104
|
+
</setup>
|
105
|
+
<test id="R001">
|
106
|
+
<name value="Get Test Data Person"/>
|
107
|
+
<description value="Result headers on normal read."/>
|
108
|
+
<metadata>
|
109
|
+
<capability>
|
110
|
+
<validated value="true"/>
|
111
|
+
<description value="Patient Read Operations"/>
|
112
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#read"/>
|
113
|
+
<conformance>
|
114
|
+
<reference value="#conf-r001-validates"/>
|
115
|
+
</conformance>
|
116
|
+
</capability>
|
117
|
+
<capability>
|
118
|
+
<required value="true"/>
|
119
|
+
<description value="Patient Read, Update, and Delete Operations"/>
|
120
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#create"/>
|
121
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#read"/>
|
122
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#delete"/>
|
123
|
+
<conformance>
|
124
|
+
<reference value="#conf-r001-requires"/>
|
125
|
+
</conformance>
|
126
|
+
</capability>
|
127
|
+
</metadata>
|
128
|
+
<action>
|
129
|
+
<operation>
|
130
|
+
<type>
|
131
|
+
<code value="read"/>
|
132
|
+
</type>
|
133
|
+
<accept value="xml"/>
|
134
|
+
<targetId value="F1"/>
|
135
|
+
</operation>
|
136
|
+
</action>
|
137
|
+
<action>
|
138
|
+
<assert>
|
139
|
+
<response value="okay"/>
|
140
|
+
</assert>
|
141
|
+
</action>
|
142
|
+
<action>
|
143
|
+
<assert>
|
144
|
+
<contentType value="xml"/>
|
145
|
+
</assert>
|
146
|
+
</action>
|
147
|
+
<action>
|
148
|
+
<assert>
|
149
|
+
<contentType value="json"/>
|
150
|
+
<warningOnly value="true"/> <!-- an example of a warning -->
|
151
|
+
</assert>
|
152
|
+
</action>
|
153
|
+
<action>
|
154
|
+
<assert>
|
155
|
+
<headerField value="Last-Modified"/>
|
156
|
+
<operator value="notEmpty"/>
|
157
|
+
</assert>
|
158
|
+
</action>
|
159
|
+
</test>
|
160
|
+
<test id="R002">
|
161
|
+
<name value="Try Read Unknown Resource Type"/>
|
162
|
+
<description value="Read unknown resource type"/>
|
163
|
+
<metadata>
|
164
|
+
<capability>
|
165
|
+
<required value="true"/>
|
166
|
+
<validated value="true"/>
|
167
|
+
<description value="Patient Read, Update, and Delete Operations"/>
|
168
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#create"/>
|
169
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#read"/>
|
170
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#delete"/>
|
171
|
+
<conformance>
|
172
|
+
<reference value="#conf-r001-validates"/>
|
173
|
+
</conformance>
|
174
|
+
</capability>
|
175
|
+
</metadata>
|
176
|
+
<action>
|
177
|
+
<operation>
|
178
|
+
<type>
|
179
|
+
<code value="read"/>
|
180
|
+
</type>
|
181
|
+
<!-- What we really want here is an illegal type, but the validation in the build process
|
182
|
+
won't that.
|
183
|
+
But Parameters is a valid resource which doesn't have an end-point so should
|
184
|
+
fail. -->
|
185
|
+
<resource value="Parameters"/>
|
186
|
+
<params value="/1"/>
|
187
|
+
</operation>
|
188
|
+
</action>
|
189
|
+
<action>
|
190
|
+
<assert>
|
191
|
+
<response value="notFound"/>
|
192
|
+
</assert>
|
193
|
+
</action>
|
194
|
+
<action>
|
195
|
+
<assert>
|
196
|
+
<responseCode value="404"/>
|
197
|
+
</assert>
|
198
|
+
</action>
|
199
|
+
</test>
|
200
|
+
<test id="R003">
|
201
|
+
<name value="Try Read Non Existing Resource"/>
|
202
|
+
<description value="Read non-existing resource id"/>
|
203
|
+
<metadata>
|
204
|
+
<capability>
|
205
|
+
<required value="true"/>
|
206
|
+
<validated value="true"/>
|
207
|
+
<description value="Patient Read, Update, and Delete Operations"/>
|
208
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#create"/>
|
209
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#read"/>
|
210
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#delete"/>
|
211
|
+
<conformance>
|
212
|
+
<reference value="#conf-r001-validates"/>
|
213
|
+
</conformance>
|
214
|
+
</capability>
|
215
|
+
</metadata>
|
216
|
+
<action>
|
217
|
+
<operation>
|
218
|
+
<type>
|
219
|
+
<code value="read"/>
|
220
|
+
</type>
|
221
|
+
<resource value="Patient"/>
|
222
|
+
<params value="/3141592unlikely"/>
|
223
|
+
</operation>
|
224
|
+
</action>
|
225
|
+
<action>
|
226
|
+
<assert>
|
227
|
+
<response value="notFound"/>
|
228
|
+
</assert>
|
229
|
+
</action>
|
230
|
+
</test>
|
231
|
+
<test id="R004">
|
232
|
+
<name value="Try Read Bad Formatted Resource Id"/>
|
233
|
+
<description value="Read bad formatted resource id"/>
|
234
|
+
<metadata>
|
235
|
+
<capability>
|
236
|
+
<required value="true"/>
|
237
|
+
<validated value="true"/>
|
238
|
+
<description value="Patient Read, Update, and Delete Operations"/>
|
239
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#create"/>
|
240
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#read"/>
|
241
|
+
<link value="http://hl7.org/implement/standards/FHIR-Develop/http.html#delete"/>
|
242
|
+
<conformance>
|
243
|
+
<reference value="#conf-r001-validates"/>
|
244
|
+
</conformance>
|
245
|
+
</capability>
|
246
|
+
</metadata>
|
247
|
+
<action>
|
248
|
+
<operation>
|
249
|
+
<type>
|
250
|
+
<code value="read"/>
|
251
|
+
</type>
|
252
|
+
<resource value="Patient"/>
|
253
|
+
<params value="/Invalid-ID-Because_Of_!@$Special_Characters_and_Length_Over_Sixty_Four_Characters"/>
|
254
|
+
</operation>
|
255
|
+
</action>
|
256
|
+
<action>
|
257
|
+
<assert>
|
258
|
+
<response value="bad"/>
|
259
|
+
</assert>
|
260
|
+
</action>
|
261
|
+
</test>
|
262
|
+
<teardown>
|
263
|
+
<action>
|
264
|
+
<operation>
|
265
|
+
<type>
|
266
|
+
<code value="delete"/>
|
267
|
+
</type>
|
268
|
+
<targetId value="F1"/>
|
269
|
+
</operation>
|
270
|
+
</action>
|
271
|
+
</teardown>
|
272
|
+
</TestScript>
|