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,50 @@
|
|
1
|
+
<Observation xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="example"/>
|
3
|
+
|
4
|
+
<!--
|
5
|
+
Observations are often coded in multiple code systems.
|
6
|
+
- Loinc provides a very specific code (though not usefully more specific in this particular case)
|
7
|
+
- snomed provides a clinically relevant code that is usually less granular than LOINC
|
8
|
+
- the source system provides it's own code, which may be less or more granular than LOINC
|
9
|
+
-->
|
10
|
+
<code><!-- LOINC - always recommended to have a LOINC code -->
|
11
|
+
<coding>
|
12
|
+
<system value="http://loinc.org"/>
|
13
|
+
<code value="3141-9"/>
|
14
|
+
<display value="Weight Measured"/>
|
15
|
+
</coding><!-- SNOMED CT Codes - becoming more common -->
|
16
|
+
<coding>
|
17
|
+
<system value="http://snomed.info/sct"/>
|
18
|
+
<code value="27113001"/>
|
19
|
+
<display value="Body weight"/>
|
20
|
+
</coding><!-- Also, a local code specific to the source system -->
|
21
|
+
<coding>
|
22
|
+
<system value="http://acme.org/devices/clinical-codes"/>
|
23
|
+
<code value="body-weight"/>
|
24
|
+
<display value="Body Weight"/>
|
25
|
+
</coding>
|
26
|
+
</code>
|
27
|
+
|
28
|
+
<!-- In FHIR, units may be represented twice. Once in the
|
29
|
+
agreed human representation, and once in a coded form.
|
30
|
+
Both is best, since it's not always possible to infer
|
31
|
+
one from the other in code.
|
32
|
+
|
33
|
+
When a computable unit is provided, UCUM (http://unitsofmeasure.org)
|
34
|
+
is always preferred, but it doesn't provide notional units (such as
|
35
|
+
"tablet"), etc. For these, something else is required (e.g. Snomed-CT)
|
36
|
+
-->
|
37
|
+
<valueQuantity>
|
38
|
+
<value value="185"/>
|
39
|
+
<units value="lbs"/>
|
40
|
+
<system value="http://unitsofmeasure.org"/>
|
41
|
+
<code value="[lb_av]"/>
|
42
|
+
</valueQuantity>
|
43
|
+
<!-- the mandatory quality flags: -->
|
44
|
+
<status value="final"/>
|
45
|
+
<reliability value="ok"/>
|
46
|
+
<subject>
|
47
|
+
<reference value="Patient/example"/>
|
48
|
+
</subject>
|
49
|
+
|
50
|
+
</Observation>
|
@@ -0,0 +1,529 @@
|
|
1
|
+
{
|
2
|
+
"name": "FHIR",
|
3
|
+
"children": [
|
4
|
+
{
|
5
|
+
"name": "OPERATIONS",
|
6
|
+
"children": [
|
7
|
+
{
|
8
|
+
"name": "RESTful API",
|
9
|
+
"children": [
|
10
|
+
{
|
11
|
+
"name": "Instance Level Interactions",
|
12
|
+
"children": [
|
13
|
+
{
|
14
|
+
"name": "read"
|
15
|
+
},{
|
16
|
+
"name": "vread"
|
17
|
+
},{
|
18
|
+
"name": "update"
|
19
|
+
},{
|
20
|
+
"name": "delete"
|
21
|
+
},{
|
22
|
+
"name": "history"
|
23
|
+
}
|
24
|
+
]
|
25
|
+
},{
|
26
|
+
"name": "Type Level Interactions",
|
27
|
+
"children": [
|
28
|
+
{
|
29
|
+
"name": "create"
|
30
|
+
},{
|
31
|
+
"name": "search"
|
32
|
+
},{
|
33
|
+
"name": "history-type"
|
34
|
+
}
|
35
|
+
]
|
36
|
+
},{
|
37
|
+
"name": "Whole System Interactions",
|
38
|
+
"children": [
|
39
|
+
{
|
40
|
+
"name": "conformance-system"
|
41
|
+
},{
|
42
|
+
"name": "transaction-system"
|
43
|
+
},{
|
44
|
+
"name": "history-system"
|
45
|
+
},{
|
46
|
+
"name": "search-system"
|
47
|
+
}
|
48
|
+
]
|
49
|
+
}
|
50
|
+
]
|
51
|
+
},{
|
52
|
+
"name": "Extended Operations",
|
53
|
+
"children": [
|
54
|
+
{
|
55
|
+
"name": "$validate"
|
56
|
+
},{
|
57
|
+
"name": "$meta"
|
58
|
+
},{
|
59
|
+
"name": "$meta-add"
|
60
|
+
},{
|
61
|
+
"name": "$meta-delete"
|
62
|
+
},{
|
63
|
+
"name": "$document"
|
64
|
+
},{
|
65
|
+
"name": "$translate"
|
66
|
+
},{
|
67
|
+
"name": "$closure"
|
68
|
+
},{
|
69
|
+
"name": "$everything"
|
70
|
+
},{
|
71
|
+
"name": "$find"
|
72
|
+
},{
|
73
|
+
"name": "$process-message"
|
74
|
+
},{
|
75
|
+
"name": "$populate"
|
76
|
+
},{
|
77
|
+
"name": "$questionnaire"
|
78
|
+
},{
|
79
|
+
"name": "$expand"
|
80
|
+
},{
|
81
|
+
"name": "$lookup"
|
82
|
+
},{
|
83
|
+
"name": "$validate-code"
|
84
|
+
},{
|
85
|
+
"name": "$guidance"
|
86
|
+
},{
|
87
|
+
"name": "$guidance-requirements"
|
88
|
+
}
|
89
|
+
]
|
90
|
+
}
|
91
|
+
]
|
92
|
+
},{
|
93
|
+
"name": "RESOURCES",
|
94
|
+
"children": [
|
95
|
+
{
|
96
|
+
"name": "Clinical",
|
97
|
+
"children": [
|
98
|
+
{
|
99
|
+
"name": "General Clinical",
|
100
|
+
"children": [
|
101
|
+
{
|
102
|
+
"name": "allergy intolerance"
|
103
|
+
},{
|
104
|
+
"name": "condition"
|
105
|
+
},{
|
106
|
+
"name": "procedure"
|
107
|
+
},{
|
108
|
+
"name": "family member history"
|
109
|
+
},{
|
110
|
+
"name": "clinical impression"
|
111
|
+
},{
|
112
|
+
"name": "risk assessment"
|
113
|
+
},{
|
114
|
+
"name": "detected issue"
|
115
|
+
}
|
116
|
+
]
|
117
|
+
},{
|
118
|
+
"name": "Care Provision",
|
119
|
+
"children": [
|
120
|
+
{
|
121
|
+
"name": "care plan"
|
122
|
+
},{
|
123
|
+
"name": "goal"
|
124
|
+
},{
|
125
|
+
"name": "referral request"
|
126
|
+
},{
|
127
|
+
"name": "procedure request"
|
128
|
+
},{
|
129
|
+
"name": "nutrition order"
|
130
|
+
},{
|
131
|
+
"name": "vision prescription"
|
132
|
+
}
|
133
|
+
]
|
134
|
+
},{
|
135
|
+
"name": "Medication Management",
|
136
|
+
"children": [
|
137
|
+
{
|
138
|
+
"name": "medication"
|
139
|
+
},{
|
140
|
+
"name": "medication order"
|
141
|
+
},{
|
142
|
+
"name": "medication administration"
|
143
|
+
},{
|
144
|
+
"name": "medication dispense"
|
145
|
+
},{
|
146
|
+
"name": "medication statement"
|
147
|
+
},{
|
148
|
+
"name": "immunization"
|
149
|
+
},{
|
150
|
+
"name": "immunization recommendation"
|
151
|
+
}
|
152
|
+
]
|
153
|
+
},{
|
154
|
+
"name": "Diagnostics",
|
155
|
+
"children": [
|
156
|
+
{
|
157
|
+
"name": "observation"
|
158
|
+
},{
|
159
|
+
"name": "diagnostic report"
|
160
|
+
},{
|
161
|
+
"name": "diagnostic order"
|
162
|
+
},{
|
163
|
+
"name": "imaging study"
|
164
|
+
},{
|
165
|
+
"name": "imaging object selection"
|
166
|
+
},{
|
167
|
+
"name": "specimen"
|
168
|
+
},{
|
169
|
+
"name": "body site"
|
170
|
+
}
|
171
|
+
]
|
172
|
+
}
|
173
|
+
]
|
174
|
+
},{
|
175
|
+
"name": "Administrative",
|
176
|
+
"children": [
|
177
|
+
{
|
178
|
+
"name": "Individuals",
|
179
|
+
"children": [
|
180
|
+
{
|
181
|
+
"name": "patient"
|
182
|
+
},{
|
183
|
+
"name": "related person"
|
184
|
+
},{
|
185
|
+
"name": "practitioner"
|
186
|
+
}
|
187
|
+
]
|
188
|
+
},{
|
189
|
+
"name": "Groups",
|
190
|
+
"children": [
|
191
|
+
{
|
192
|
+
"name": "organization"
|
193
|
+
},{
|
194
|
+
"name": "healthcare service"
|
195
|
+
},{
|
196
|
+
"name": "group"
|
197
|
+
}
|
198
|
+
]
|
199
|
+
},{
|
200
|
+
"name": "Entities",
|
201
|
+
"children": [
|
202
|
+
{
|
203
|
+
"name": "location"
|
204
|
+
},{
|
205
|
+
"name": "substance"
|
206
|
+
},{
|
207
|
+
"name": "person"
|
208
|
+
},{
|
209
|
+
"name": "contract"
|
210
|
+
}
|
211
|
+
]
|
212
|
+
},{
|
213
|
+
"name": "Device",
|
214
|
+
"children": [
|
215
|
+
{
|
216
|
+
"name": "device"
|
217
|
+
},{
|
218
|
+
"name": "device component"
|
219
|
+
},{
|
220
|
+
"name": "device metric"
|
221
|
+
}
|
222
|
+
]
|
223
|
+
}
|
224
|
+
]
|
225
|
+
},{
|
226
|
+
"name": "Work Flow",
|
227
|
+
"children": [
|
228
|
+
{ "name": "Patient Management",
|
229
|
+
"children": [
|
230
|
+
{
|
231
|
+
"name": "encounter"
|
232
|
+
},{
|
233
|
+
"name": "episode of care"
|
234
|
+
},{
|
235
|
+
"name": "flag"
|
236
|
+
},{
|
237
|
+
"name": "communication"
|
238
|
+
}
|
239
|
+
]
|
240
|
+
},{
|
241
|
+
"name": "Scheduling",
|
242
|
+
"children": [
|
243
|
+
{
|
244
|
+
"name": "appointment"
|
245
|
+
},{
|
246
|
+
"name": "appointment response"
|
247
|
+
},{
|
248
|
+
"name": "schedule"
|
249
|
+
},{
|
250
|
+
"name": "slot"
|
251
|
+
}
|
252
|
+
]
|
253
|
+
},{
|
254
|
+
"name": "Order Management",
|
255
|
+
"children": [
|
256
|
+
{
|
257
|
+
"name": "order"
|
258
|
+
},{
|
259
|
+
"name": "order response"
|
260
|
+
},{
|
261
|
+
"name": "communication request"
|
262
|
+
},{
|
263
|
+
"name": "device use request"
|
264
|
+
},{
|
265
|
+
"name": "device use statement"
|
266
|
+
},{
|
267
|
+
"name": "process request"
|
268
|
+
},{
|
269
|
+
"name": "process response"
|
270
|
+
},{
|
271
|
+
"name": "supply delivery"
|
272
|
+
},{
|
273
|
+
"name": "supply request"
|
274
|
+
}
|
275
|
+
]
|
276
|
+
}
|
277
|
+
]
|
278
|
+
},{
|
279
|
+
"name": "Infrastructure",
|
280
|
+
"children": [
|
281
|
+
{
|
282
|
+
"name": "Information Management",
|
283
|
+
"children": [
|
284
|
+
{
|
285
|
+
"name": "questionnaire"
|
286
|
+
},{
|
287
|
+
"name": "questionnaire response"
|
288
|
+
},{
|
289
|
+
"name": "provenance"
|
290
|
+
},{
|
291
|
+
"name": "audit event"
|
292
|
+
}
|
293
|
+
]
|
294
|
+
},{
|
295
|
+
"name": "Documents",
|
296
|
+
"children": [
|
297
|
+
{
|
298
|
+
"name": "list"
|
299
|
+
},{
|
300
|
+
"name": "composition"
|
301
|
+
},{
|
302
|
+
"name": "document reference"
|
303
|
+
},{
|
304
|
+
"name": "document manifest"
|
305
|
+
}
|
306
|
+
]
|
307
|
+
},{
|
308
|
+
"name": "Structures",
|
309
|
+
"children": [
|
310
|
+
{
|
311
|
+
"name": "media"
|
312
|
+
},{
|
313
|
+
"name": "binary"
|
314
|
+
},{
|
315
|
+
"name": "bundle"
|
316
|
+
},{
|
317
|
+
"name": "basic"
|
318
|
+
}
|
319
|
+
]
|
320
|
+
},{
|
321
|
+
"name": "Exchange",
|
322
|
+
"children": [
|
323
|
+
{
|
324
|
+
"name": "message header"
|
325
|
+
},{
|
326
|
+
"name": "operation outcome"
|
327
|
+
},{
|
328
|
+
"name": "subscription"
|
329
|
+
},{
|
330
|
+
"name": "parameters"
|
331
|
+
}
|
332
|
+
]
|
333
|
+
}
|
334
|
+
]
|
335
|
+
},{
|
336
|
+
"name": "Conformance",
|
337
|
+
"children": [
|
338
|
+
{
|
339
|
+
"name": "Terminology",
|
340
|
+
"children": [
|
341
|
+
{
|
342
|
+
"name": "value set"
|
343
|
+
},{
|
344
|
+
"name": "concept map"
|
345
|
+
},{
|
346
|
+
"name": "naming system"
|
347
|
+
}
|
348
|
+
]
|
349
|
+
},{
|
350
|
+
"name": "Content",
|
351
|
+
"children": [
|
352
|
+
{
|
353
|
+
"name": "structure definition"
|
354
|
+
},{
|
355
|
+
"name": "data element"
|
356
|
+
}
|
357
|
+
]
|
358
|
+
},{
|
359
|
+
"name": "Behavior",
|
360
|
+
"children": [
|
361
|
+
{
|
362
|
+
"name": "conformance"
|
363
|
+
},{
|
364
|
+
"name": "operation definition"
|
365
|
+
},{
|
366
|
+
"name": "search parameter"
|
367
|
+
}
|
368
|
+
]
|
369
|
+
},{
|
370
|
+
"name": "Miscellaneous",
|
371
|
+
"children": [
|
372
|
+
{
|
373
|
+
"name": "implementation guide"
|
374
|
+
},{
|
375
|
+
"name": "test script"
|
376
|
+
}
|
377
|
+
]
|
378
|
+
}
|
379
|
+
]
|
380
|
+
},{
|
381
|
+
"name": "Financial",
|
382
|
+
"children": [
|
383
|
+
{
|
384
|
+
"name": "Support",
|
385
|
+
"children": [
|
386
|
+
{
|
387
|
+
"name": "account"
|
388
|
+
},{
|
389
|
+
"name": "coverage"
|
390
|
+
},{
|
391
|
+
"name": "eligibility request"
|
392
|
+
},{
|
393
|
+
"name": "eligibility response"
|
394
|
+
},{
|
395
|
+
"name": "enrollment request"
|
396
|
+
},{
|
397
|
+
"name": "enrollment response"
|
398
|
+
}
|
399
|
+
]
|
400
|
+
},{
|
401
|
+
"name": "Billing",
|
402
|
+
"children": [
|
403
|
+
{
|
404
|
+
"name": "claim"
|
405
|
+
},{
|
406
|
+
"name": "claim response"
|
407
|
+
}
|
408
|
+
]
|
409
|
+
},{
|
410
|
+
"name": "Payment",
|
411
|
+
"children": [
|
412
|
+
{
|
413
|
+
"name": "payment notice"
|
414
|
+
},{
|
415
|
+
"name": "payment reconciliation"
|
416
|
+
}
|
417
|
+
]
|
418
|
+
},{
|
419
|
+
"name": "Other",
|
420
|
+
"children": [
|
421
|
+
{
|
422
|
+
"name": "explanation of benefit"
|
423
|
+
}
|
424
|
+
]
|
425
|
+
}
|
426
|
+
]
|
427
|
+
}
|
428
|
+
]
|
429
|
+
},{
|
430
|
+
"name": "FORMAT",
|
431
|
+
"children": [
|
432
|
+
{
|
433
|
+
"name": "XML"
|
434
|
+
},{
|
435
|
+
"name": "JSON"
|
436
|
+
}
|
437
|
+
]
|
438
|
+
},{
|
439
|
+
"name": "SECURITY",
|
440
|
+
"children": [
|
441
|
+
{
|
442
|
+
"name": "General Security",
|
443
|
+
"children": [
|
444
|
+
{
|
445
|
+
"name": "Authorization/Access Control"
|
446
|
+
},{
|
447
|
+
"name": "OAuth2"
|
448
|
+
},{
|
449
|
+
"name": "Audit Logging"
|
450
|
+
},{
|
451
|
+
"name": "Digital Signatures"
|
452
|
+
}
|
453
|
+
]
|
454
|
+
},{
|
455
|
+
"name": "Security Labels",
|
456
|
+
"children": [
|
457
|
+
{
|
458
|
+
"name": "Confidentiality Codes"
|
459
|
+
},{
|
460
|
+
"name": "Celebrity / VIP"
|
461
|
+
},{
|
462
|
+
"name": "Staff"
|
463
|
+
},{
|
464
|
+
"name": "Keep information from patient"
|
465
|
+
},{
|
466
|
+
"name": "Contact/Employment Details Confidential"
|
467
|
+
},{
|
468
|
+
"name": "Diagnosis-related confidentiality"
|
469
|
+
},{
|
470
|
+
"name": "Author consent needed"
|
471
|
+
},{
|
472
|
+
"name": "Delete After Use"
|
473
|
+
},{
|
474
|
+
"name": "Do Not Reuse"
|
475
|
+
},{
|
476
|
+
"name": "Break The Glass"
|
477
|
+
},{
|
478
|
+
"name": "Confidentiality Classification"
|
479
|
+
},{
|
480
|
+
"name": "Sensitivity Category"
|
481
|
+
},{
|
482
|
+
"name": "Compartment Category"
|
483
|
+
},{
|
484
|
+
"name": "Integrity Category"
|
485
|
+
},{
|
486
|
+
"name": "Handling Caveat"
|
487
|
+
},{
|
488
|
+
"name": "US Privacy Law"
|
489
|
+
}
|
490
|
+
]
|
491
|
+
}
|
492
|
+
]
|
493
|
+
},{
|
494
|
+
"name": "MESSAGING",
|
495
|
+
"children": [
|
496
|
+
{
|
497
|
+
"name": "Consequence"
|
498
|
+
},{
|
499
|
+
"name": "Currency"
|
500
|
+
},{
|
501
|
+
"name": "Notification"
|
502
|
+
}
|
503
|
+
]
|
504
|
+
},{
|
505
|
+
"name": "DOCUMENTS",
|
506
|
+
"children": []
|
507
|
+
},{
|
508
|
+
"name": "PROFILES",
|
509
|
+
"children": [
|
510
|
+
{
|
511
|
+
"name": "validate-profile"
|
512
|
+
}
|
513
|
+
]
|
514
|
+
},{
|
515
|
+
"name": "EXTENSIONS",
|
516
|
+
"children": [
|
517
|
+
{
|
518
|
+
"name": "extensions"
|
519
|
+
},{
|
520
|
+
"name": "modifying extensions"
|
521
|
+
},{
|
522
|
+
"name": "complex extensions"
|
523
|
+
},{
|
524
|
+
"name": "primitive extensions"
|
525
|
+
}
|
526
|
+
]
|
527
|
+
}
|
528
|
+
]
|
529
|
+
}
|
@@ -0,0 +1,94 @@
|
|
1
|
+
module Crucible
|
2
|
+
module Tests
|
3
|
+
class DAFResourceGenerator < ResourceGenerator
|
4
|
+
|
5
|
+
def self.daf_patient(identifier='0',name='Name')
|
6
|
+
resource = minimal_patient(identifier,name)
|
7
|
+
# resource.identifier = [ minimal_identifier(identifier) ]
|
8
|
+
# resource.name = [ minimal_humanname(name) ]
|
9
|
+
resource.meta = FHIR::Resource::ResourceMetaComponent.new
|
10
|
+
resource.meta.profile = ['http://hl7.org/fhir/StructureDefinition/daf-patient']
|
11
|
+
# DAF must supports and DAF extensions
|
12
|
+
resource.active = true
|
13
|
+
resource.telecom = [ daf_contact_point ]
|
14
|
+
resource.gender = 'unknown'
|
15
|
+
resource.birthDate = DateTime.now.strftime("%Y-%m-%d")
|
16
|
+
resource.deceasedBoolean = false
|
17
|
+
resource.address = [ daf_address ]
|
18
|
+
resource.maritalStatus = minimal_codeableconcept('http://hl7.org/fhir/marital-status','S')
|
19
|
+
resource.multipleBirthBoolean = false
|
20
|
+
resource.contact = [ daf_patient_contact ]
|
21
|
+
resource.communication = [ daf_patient_communication ]
|
22
|
+
resource.careProvider = [ FHIR::Reference.new ] # reference to DAF-Organization or DAF-Pract
|
23
|
+
resource.careProvider.first.display = 'DAF Organization or Practitioner'
|
24
|
+
resource.managingOrganization = FHIR::Reference.new # reference to DAF-Organization
|
25
|
+
resource.managingOrganization.display = 'DAF Organization'
|
26
|
+
resource.extension = []
|
27
|
+
resource.extension << make_extension('http://hl7.org/fhir/StructureDefinition/us-core-race','CodeableConcept',minimal_codeableconcept('http://hl7.org/fhir/v3/Race','2106-3'))
|
28
|
+
resource.extension << make_extension('http://hl7.org/fhir/StructureDefinition/us-core-ethnicity','CodeableConcept',minimal_codeableconcept('http://hl7.org/fhir/v3/Ethnicity','2186-5'))
|
29
|
+
resource.extension << make_extension('http://hl7.org/fhir/StructureDefinition/us-core-religion','CodeableConcept',minimal_codeableconcept('http://hl7.org/fhir/v3/ReligiousAffiliation','1007'))
|
30
|
+
resource.extension << make_extension('http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName','String','Liberty')
|
31
|
+
resource.extension << make_extension('http://hl7.org/fhir/StructureDefinition/birthPlace','Address',daf_address)
|
32
|
+
resource
|
33
|
+
end
|
34
|
+
|
35
|
+
# Patient.name
|
36
|
+
# Sex Gender Patient.gender
|
37
|
+
# Date of Birth Date of Birth Patient.birthDate
|
38
|
+
# Race Race Patient.extension(us-core-race)
|
39
|
+
# Ethnicity Ethnicity Patient.extension(us-core-ethnicity)
|
40
|
+
# Preferred Language Preferred Language Patient.communication.preferred
|
41
|
+
# Patient Identifiers Patient.identifier
|
42
|
+
# Multiple Birth Indicator Patient.multipleBirthBoolean
|
43
|
+
# Birth Order Patient.multipleBirthInteger
|
44
|
+
# Mother's Maiden Name Patient.extension(patient-mothers-maiden-name)
|
45
|
+
# Address Patient.address
|
46
|
+
# Telephone Patient.telecom
|
47
|
+
# Marital Status Patient.maritalStatus
|
48
|
+
# Birth Place Patient.extension(birthplace)
|
49
|
+
# Religious Affiliation Patient.extension(religion)
|
50
|
+
# Guardian Patient.contact
|
51
|
+
|
52
|
+
def self.daf_contact_point
|
53
|
+
resource = FHIR::ContactPoint.new
|
54
|
+
resource.system = 'phone'
|
55
|
+
resource.value = '1-800-555-1212'
|
56
|
+
resource.use = 'work'
|
57
|
+
resource
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.daf_address
|
61
|
+
resource = FHIR::Address.new
|
62
|
+
resource.line = ['Statue of Liberty National Monument']
|
63
|
+
resource.city = 'New York'
|
64
|
+
resource.state = 'NY'
|
65
|
+
resource.postalCode = '10004'
|
66
|
+
resource.country = 'USA'
|
67
|
+
resource
|
68
|
+
end
|
69
|
+
|
70
|
+
def self.daf_patient_contact
|
71
|
+
resource = FHIR::Patient::ContactComponent.new
|
72
|
+
resource.relationship = [ minimal_codeableconcept('http://hl7.org/fhir/patient-contact-relationship','parent'), minimal_codeableconcept('http://hl7.org/fhir/patient-contact-relationship','emergency') ]
|
73
|
+
resource.name = minimal_humanname('Mom')
|
74
|
+
resource.telecom = [ daf_contact_point ]
|
75
|
+
resource.address = daf_address
|
76
|
+
resource
|
77
|
+
end
|
78
|
+
|
79
|
+
def self.daf_patient_communication
|
80
|
+
resource = FHIR::Patient::PatientCommunicationComponent.new
|
81
|
+
resource.language = minimal_codeableconcept('http://tools.ietf.org/html/bcp47','en-US')
|
82
|
+
resource
|
83
|
+
end
|
84
|
+
|
85
|
+
def self.make_extension(url,type,value)
|
86
|
+
extension = FHIR::Extension.new
|
87
|
+
extension.url = url
|
88
|
+
extension.value = FHIR::AnyType.new(type,value)
|
89
|
+
extension
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|