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,81 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Patient xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<id value="us01"/>
|
4
|
+
<extension url="http://hl7.org/fhir/StructureDefinition/us-core-race">
|
5
|
+
<valueCodeableConcept>
|
6
|
+
<coding>
|
7
|
+
<system value="http://hl7.org/fhir/v3/Race" />
|
8
|
+
<code value="1096-7" />
|
9
|
+
</coding>
|
10
|
+
</valueCodeableConcept>
|
11
|
+
</extension>
|
12
|
+
<extension url="http://hl7.org/fhir/StructureDefinition/us-core-ethnicity">
|
13
|
+
<valueCodeableConcept>
|
14
|
+
<coding>
|
15
|
+
<system value="http://hl7.org/fhir/v3/Ethnicity" />
|
16
|
+
<code value="2162-6" />
|
17
|
+
</coding>
|
18
|
+
</valueCodeableConcept>
|
19
|
+
</extension>
|
20
|
+
<text>
|
21
|
+
<status value="generated"/>
|
22
|
+
<div xmlns="http://www.w3.org/1999/xhtml">
|
23
|
+
<table>
|
24
|
+
<tbody>
|
25
|
+
<tr>
|
26
|
+
<td>Name</td>
|
27
|
+
<td>Peter James <b>Chalmers</b> ("Jim")</td>
|
28
|
+
</tr>
|
29
|
+
<tr>
|
30
|
+
<td>Address</td>
|
31
|
+
<td>534 Erewhon, Pleasantville, Orange County, 3999</td>
|
32
|
+
</tr>
|
33
|
+
<tr>
|
34
|
+
<td>Contacts</td>
|
35
|
+
<td>Home: unknown. Work: (03) 5555 6473</td>
|
36
|
+
</tr>
|
37
|
+
<tr>
|
38
|
+
<td>Id</td>
|
39
|
+
<td>MRN: 12345 (Acme Healthcare)</td>
|
40
|
+
</tr>
|
41
|
+
</tbody>
|
42
|
+
</table>
|
43
|
+
</div>
|
44
|
+
</text>
|
45
|
+
|
46
|
+
<!-- Peter James Chalmers, but called "Jim" -->
|
47
|
+
<name>
|
48
|
+
<use value="official"/>
|
49
|
+
<family value="Chalmers"/>
|
50
|
+
<given value="Peter"/>
|
51
|
+
<given value="James"/>
|
52
|
+
</name>
|
53
|
+
|
54
|
+
<address>
|
55
|
+
<extension url="http://hl7.org/fhir/StructureDefinition/us-core-county">
|
56
|
+
<valueString value="Orange County" />
|
57
|
+
</extension>
|
58
|
+
<use value="home"/>
|
59
|
+
<line value="534 Erewhon St"/>
|
60
|
+
<city value="PleasantVille"/>
|
61
|
+
<state value="Vic"/>
|
62
|
+
<postalCode value="3999"/>
|
63
|
+
</address>
|
64
|
+
|
65
|
+
<telecom>
|
66
|
+
<system value="phone"/>
|
67
|
+
<value value="(03) 5555 6473"/>
|
68
|
+
<use value="work"/>
|
69
|
+
</telecom>
|
70
|
+
<telecom>
|
71
|
+
<extension url="http://hl7.org/fhir/StructureDefinition/us-core-direct">
|
72
|
+
<valueBoolean value="true"/>
|
73
|
+
</extension>
|
74
|
+
<system value="email"/>
|
75
|
+
<value value="person@example.org"/>
|
76
|
+
<use value="work"/>
|
77
|
+
</telecom>
|
78
|
+
|
79
|
+
<active value="true"/>
|
80
|
+
|
81
|
+
</Patient>
|
@@ -0,0 +1,132 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><Patient xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="example"/>
|
3
|
+
<text>
|
4
|
+
<status value="generated"/>
|
5
|
+
<div xmlns="http://www.w3.org/1999/xhtml">
|
6
|
+
|
7
|
+
<table>
|
8
|
+
|
9
|
+
<tbody>
|
10
|
+
|
11
|
+
<tr>
|
12
|
+
|
13
|
+
<td>Name</td>
|
14
|
+
|
15
|
+
<td>Peter James
|
16
|
+
<b>Chalmers</b> ("Jim")
|
17
|
+
</td>
|
18
|
+
|
19
|
+
</tr>
|
20
|
+
|
21
|
+
<tr>
|
22
|
+
|
23
|
+
<td>Address</td>
|
24
|
+
|
25
|
+
<td>534 Erewhon, Pleasantville, Vic, 3999</td>
|
26
|
+
|
27
|
+
</tr>
|
28
|
+
|
29
|
+
<tr>
|
30
|
+
|
31
|
+
<td>Contacts</td>
|
32
|
+
|
33
|
+
<td>Home: unknown. Work: (03) 5555 6473</td>
|
34
|
+
|
35
|
+
</tr>
|
36
|
+
|
37
|
+
<tr>
|
38
|
+
|
39
|
+
<td>Id</td>
|
40
|
+
|
41
|
+
<td>MRN: 12345 (Acme Healthcare)</td>
|
42
|
+
|
43
|
+
</tr>
|
44
|
+
|
45
|
+
</tbody>
|
46
|
+
|
47
|
+
</table>
|
48
|
+
|
49
|
+
</div>
|
50
|
+
</text>
|
51
|
+
<!-- MRN assigned by ACME healthcare on 6-May 2001 -->
|
52
|
+
<identifier>
|
53
|
+
<use value="usual"/>
|
54
|
+
<type>
|
55
|
+
<coding>
|
56
|
+
<system value="http://hl7.org/fhir/v2/0203"/>
|
57
|
+
<code value="MR"/>
|
58
|
+
</coding>
|
59
|
+
</type>
|
60
|
+
<system value="urn:oid:1.2.36.146.595.217.0.1"/>
|
61
|
+
<value value="12345"/>
|
62
|
+
<period>
|
63
|
+
<start value="2001-05-06"/>
|
64
|
+
</period>
|
65
|
+
<assigner>
|
66
|
+
<display value="Acme Healthcare"/>
|
67
|
+
</assigner>
|
68
|
+
</identifier>
|
69
|
+
<active value="true"/>
|
70
|
+
<!-- Peter James Chalmers, but called "Jim" -->
|
71
|
+
<name>
|
72
|
+
<use value="official"/>
|
73
|
+
<family value="Chalmers"/>
|
74
|
+
<given value="Peter"/>
|
75
|
+
<given value="James"/>
|
76
|
+
</name>
|
77
|
+
<name>
|
78
|
+
<use value="usual"/>
|
79
|
+
<given value="Jim"/>
|
80
|
+
</name>
|
81
|
+
<telecom>
|
82
|
+
<use value="home"/>
|
83
|
+
<!-- home communication details aren't known -->
|
84
|
+
</telecom>
|
85
|
+
<telecom>
|
86
|
+
<system value="phone"/>
|
87
|
+
<value value="(03) 5555 6473"/>
|
88
|
+
<use value="work"/>
|
89
|
+
</telecom>
|
90
|
+
<!-- use FHIR code system for male / female -->
|
91
|
+
<gender value="male"/>
|
92
|
+
<birthDate value="1974-12-25">
|
93
|
+
<extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime">
|
94
|
+
<valueDateTime value="1974-12-25T14:35:45-05:00"/>
|
95
|
+
</extension>
|
96
|
+
</birthDate>
|
97
|
+
<deceasedBoolean value="false"/>
|
98
|
+
<address>
|
99
|
+
<use value="home"/>
|
100
|
+
<line value="534 Erewhon St"/>
|
101
|
+
<city value="PleasantVille"/>
|
102
|
+
<state value="Vic"/>
|
103
|
+
<postalCode value="3999"/>
|
104
|
+
</address>
|
105
|
+
<contact>
|
106
|
+
<relationship>
|
107
|
+
<coding>
|
108
|
+
<system value="http://hl7.org/fhir/patient-contact-relationship"/>
|
109
|
+
<code value="partner"/>
|
110
|
+
</coding>
|
111
|
+
</relationship>
|
112
|
+
<name>
|
113
|
+
<family value="du">
|
114
|
+
<!-- the "du" part is a family name prefix (VV in iso 21090) -->
|
115
|
+
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier">
|
116
|
+
<valueCode value="VV"/>
|
117
|
+
</extension>
|
118
|
+
</family>
|
119
|
+
<family value="Marché"/>
|
120
|
+
<given value="Bénédicte"/>
|
121
|
+
</name>
|
122
|
+
<telecom>
|
123
|
+
<system value="phone"/>
|
124
|
+
<value value="+33 (237) 998327"/>
|
125
|
+
</telecom>
|
126
|
+
<gender value="female"/>
|
127
|
+
<period>
|
128
|
+
<!-- The contact relationship started in 2012 -->
|
129
|
+
<start value="2012"/>
|
130
|
+
</period>
|
131
|
+
</contact>
|
132
|
+
</Patient>
|
@@ -0,0 +1,101 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Patient xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<id value="example"/>
|
4
|
+
<!-- #FIXME: Health Intersections doesn't handle defined text elements -->
|
5
|
+
<!-- <text>
|
6
|
+
<status value="generated"/>
|
7
|
+
<div xmlns="http://www.w3.org/1999/xhtml"></div>
|
8
|
+
</text> -->
|
9
|
+
<extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime">
|
10
|
+
<valueDateTime value="2001-05-06T14:35:45-05:00"/>
|
11
|
+
</extension>
|
12
|
+
<!-- MRN assigned by ACME healthcare on 6-May 2001 -->
|
13
|
+
<identifier>
|
14
|
+
<!-- WildFHIR server can't handle identifier use and type... -->
|
15
|
+
<!-- <use value="usual"/> -->
|
16
|
+
<!-- <type>
|
17
|
+
<coding>
|
18
|
+
<system value="http://hl7.org/fhir/v2/0203"/> -->
|
19
|
+
<!-- FIXME: Official example uses MRN, but should be MR... -->
|
20
|
+
<!-- <code value="MRN"/> -->
|
21
|
+
<!-- <code value="MR"/>
|
22
|
+
</coding>
|
23
|
+
</type> -->
|
24
|
+
<system value="urn:oid:1.2.36.146.595.217.0.1"/>
|
25
|
+
<value value="12345"/>
|
26
|
+
<period>
|
27
|
+
<start value="2001-05-06"/>
|
28
|
+
</period>
|
29
|
+
<assigner>
|
30
|
+
<display value="Acme Healthcare"/>
|
31
|
+
</assigner>
|
32
|
+
</identifier>
|
33
|
+
|
34
|
+
<!-- Peter James Chalmers, but called "Jim" -->
|
35
|
+
<name>
|
36
|
+
<use value="official"/>
|
37
|
+
<family value="Chalmers"/>
|
38
|
+
<given value="Peter"/>
|
39
|
+
<given value="James"/>
|
40
|
+
</name>
|
41
|
+
<name>
|
42
|
+
<use value="usual"/>
|
43
|
+
<given value="Jim"/>
|
44
|
+
</name>
|
45
|
+
|
46
|
+
<telecom>
|
47
|
+
<use value="home"/>
|
48
|
+
<!-- home communication details aren't known -->
|
49
|
+
</telecom>
|
50
|
+
<telecom>
|
51
|
+
<system value="phone"/>
|
52
|
+
<value value="(03) 5555 6473"/>
|
53
|
+
<use value="work"/>
|
54
|
+
</telecom>
|
55
|
+
|
56
|
+
<!-- use FHIR code system for male / female -->
|
57
|
+
<gender value="male" />
|
58
|
+
<birthDate value="1974-12-25"/>
|
59
|
+
<!-- FIXME: Deceased Boolean isn't handled by SMART on FHIR correctly... -->
|
60
|
+
<!-- <deceasedBoolean value="false"/> -->
|
61
|
+
|
62
|
+
<address>
|
63
|
+
<use value="home"/>
|
64
|
+
<line value="534 Erewhon St"/>
|
65
|
+
<city value="PleasantVille"/>
|
66
|
+
<state value="Vic"/>
|
67
|
+
<postalCode value="3999"/>
|
68
|
+
</address>
|
69
|
+
|
70
|
+
<contact>
|
71
|
+
<relationship>
|
72
|
+
<coding>
|
73
|
+
<system value="http://hl7.org/fhir/patient-contact-relationship"/>
|
74
|
+
<code value="partner"/>
|
75
|
+
</coding>
|
76
|
+
</relationship>
|
77
|
+
|
78
|
+
<name>
|
79
|
+
<family value="du">
|
80
|
+
<!-- the "du" part is a family name prefix (VV in iso 21090) -->
|
81
|
+
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier">
|
82
|
+
<valueCode value="VV"/>
|
83
|
+
</extension>
|
84
|
+
</family>
|
85
|
+
<family value="Marché"/>
|
86
|
+
<given value="Bénédicte"/>
|
87
|
+
</name>
|
88
|
+
|
89
|
+
<telecom>
|
90
|
+
<system value="phone"/>
|
91
|
+
<value value="+33 (237) 998327"/>
|
92
|
+
</telecom>
|
93
|
+
</contact>
|
94
|
+
|
95
|
+
<managingOrganization>
|
96
|
+
<reference value="Organization/1"/>
|
97
|
+
</managingOrganization>
|
98
|
+
|
99
|
+
<active value="true"/>
|
100
|
+
|
101
|
+
</Patient>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><Patient xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="patient-uslab-example1"/>
|
3
|
+
<text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: patient-uslab-example1</p><p><b>identifier</b>: 18547545 (USUAL)</p><p><b>name</b>: Todd G. Lerr (OFFICIAL)</p><p><b>gender</b>: male</p><p><b>birthDate</b>: Jun 7, 2012</p><p><b>deceased</b>: false</p><p><b>address</b>: 123 North 102nd Street Apt 4d Harrisburg PA 17102 USA (HOME)</p></div></text><extension url="http://hl7.org/fhir/StructureDefinition/us-core-race">
|
4
|
+
<valueCodeableConcept>
|
5
|
+
<coding>
|
6
|
+
<code value="2106-3"/>
|
7
|
+
</coding>
|
8
|
+
</valueCodeableConcept>
|
9
|
+
</extension>
|
10
|
+
<extension url="http://hl7.org/fhir/StructureDefinition/us-core-ethnicity">
|
11
|
+
<valueCodeableConcept>
|
12
|
+
<coding>
|
13
|
+
<code value="2135-2"/>
|
14
|
+
</coding>
|
15
|
+
</valueCodeableConcept>
|
16
|
+
</extension>
|
17
|
+
<!-- EH: limit to single identifier that orderer can match to patient system can be URL -->
|
18
|
+
<identifier>
|
19
|
+
<use value="usual"/>
|
20
|
+
<system value="urn:oid:2.16.840.1.113883.3.72.5.30.2"/>
|
21
|
+
<value value="18547545"/>
|
22
|
+
</identifier>
|
23
|
+
<!-- name use limited to official and anonymous -->
|
24
|
+
<name>
|
25
|
+
<use value="official"/>
|
26
|
+
<family value="Lerr"/>
|
27
|
+
<given value="Todd"/>
|
28
|
+
<given value="G."/>
|
29
|
+
<suffix value="Jr"/>
|
30
|
+
</name>
|
31
|
+
<!-- use FHIR code system for male / female -->
|
32
|
+
<gender value="male"/>
|
33
|
+
<birthDate value="2012-06-07"/>
|
34
|
+
<deceasedBoolean value="false"/>
|
35
|
+
<address>
|
36
|
+
<use value="home"/>
|
37
|
+
<line value="123 North 102nd Street"/>
|
38
|
+
<line value="Apt 4d"/>
|
39
|
+
<city value="Harrisburg"/>
|
40
|
+
<state value="PA"/>
|
41
|
+
<postalCode value="17102"/>
|
42
|
+
<country value="USA"/>
|
43
|
+
</address>
|
44
|
+
</Patient>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><Practitioner xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="pract-uslab-example1"/>
|
3
|
+
<text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: pract-uslab-example1</p><p><b>identifier</b>: 4444444445 (OFFICIAL)</p><p><b>name</b>: Leanard T Bloodraw </p><p><b>telecom</b>: ph: (555)7771234 ext.11</p></div></text><identifier>
|
4
|
+
<use value="official"/>
|
5
|
+
<system value="http://hl7.org/fhir/sid/us-npi"/> <!-- NPI -->
|
6
|
+
<value value="4444444445"/>
|
7
|
+
</identifier>
|
8
|
+
<name>
|
9
|
+
<family value="Bloodraw"/>
|
10
|
+
<given value="Leanard"/>
|
11
|
+
<given value="T"/>
|
12
|
+
<suffix value="Jr"/>
|
13
|
+
</name>
|
14
|
+
<telecom>
|
15
|
+
<system value="phone"/>
|
16
|
+
<value value="(555)7771234 ext.11"/>
|
17
|
+
</telecom>
|
18
|
+
</Practitioner>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Practitioner xmlns="http://hl7.org/fhir">
|
3
|
+
<id value="pract-uslab-example3"/>
|
4
|
+
<text>
|
5
|
+
<status value="generated"/>
|
6
|
+
<div xmlns="http://www.w3.org/1999/xhtml">
|
7
|
+
<p>
|
8
|
+
<b>Generated Narrative with Details</b>
|
9
|
+
</p>
|
10
|
+
<p>
|
11
|
+
<b>id</b>: pract-uslab-example3</p>
|
12
|
+
<p>
|
13
|
+
<b>identifier</b>: 1234567893 (official)</p>
|
14
|
+
<p>
|
15
|
+
<b>name</b>: Gregory F House </p>
|
16
|
+
<p>
|
17
|
+
<b>telecom</b>: ph: 555 777 1234 11</p>
|
18
|
+
</div>
|
19
|
+
</text>
|
20
|
+
<identifier>
|
21
|
+
<use value="official"/>
|
22
|
+
<system value="http://hl7.org/fhir/sid/us-npi"/>
|
23
|
+
<!-- NPI -->
|
24
|
+
<value value="1234567893"/>
|
25
|
+
</identifier>
|
26
|
+
<name>
|
27
|
+
<family value="House"/>
|
28
|
+
<given value="Gregory"/>
|
29
|
+
<given value="F"/>
|
30
|
+
<suffix value="PhD"/>
|
31
|
+
</name>
|
32
|
+
<telecom>
|
33
|
+
<system value="phone"/>
|
34
|
+
<value value="555 777 1234 11"/>
|
35
|
+
</telecom>
|
36
|
+
</Practitioner>
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><Condition xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="f201"/>
|
3
|
+
<text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: f201</p><p><b>patient</b>: <a>Roel</a></p><p><b>encounter</b>: <a>Encounter/f201</a></p><p><b>asserter</b>: <a>Practitioner/f201</a></p><p><b>dateRecorded</b>: Apr 4, 2013</p><p><b>code</b>: Fever <span>(Details : {SNOMED CT code '386661006' = '386661006', given as 'Fever'})</span></p><p><b>category</b>: Problem <span>(Details : {SNOMED CT code '55607006' = '55607006', given as 'Problem'}; {http://hl7.org/fhir/condition-category code 'finding' = 'Finding)</span></p><p><b>clinicalStatus</b>: active</p><p><b>verificationStatus</b>: confirmed</p><p><b>severity</b>: Mild <span>(Details : {SNOMED CT code '255604002' = '255604002', given as 'Mild'})</span></p><p><b>onset</b>: Apr 2, 2013</p><h3>Evidences</h3><table><tr><td>-</td><td><b>Code</b></td><td><b>Detail</b></td></tr><tr><td>*</td><td>degrees C <span>(Details : {SNOMED CT code '258710007' = '258710007', given as 'degrees C'})</span></td><td><a>Temperature</a></td></tr></table><p><b>bodySite</b>: Entire body as a whole <span>(Details : {SNOMED CT code '38266002' = '38266002', given as 'Entire body as a whole'})</span></p></div></text><patient><!-- It entails Roel's problem -->
|
4
|
+
<reference value="Patient/f201"/>
|
5
|
+
<display value="Roel"/>
|
6
|
+
</patient>
|
7
|
+
<encounter>
|
8
|
+
<reference value="Encounter/f201"/>
|
9
|
+
</encounter>
|
10
|
+
<asserter>
|
11
|
+
<reference value="Practitioner/f201"/>
|
12
|
+
</asserter>
|
13
|
+
<dateRecorded value="2013-04-04"/><!-- The problem was entered at April fourth -->
|
14
|
+
<code><!-- The problem is a fever -->
|
15
|
+
<coding>
|
16
|
+
<system value="http://snomed.info/sct"/>
|
17
|
+
<code value="386661006"/>
|
18
|
+
<display value="Fever"/>
|
19
|
+
</coding>
|
20
|
+
</code>
|
21
|
+
<category><!-- The fever is a mild problem -->
|
22
|
+
<coding>
|
23
|
+
<system value="http://snomed.info/sct"/>
|
24
|
+
<code value="55607006"/>
|
25
|
+
<display value="Problem"/>
|
26
|
+
</coding>
|
27
|
+
<coding>
|
28
|
+
<system value="http://hl7.org/fhir/condition-category"/>
|
29
|
+
<code value="finding"/>
|
30
|
+
</coding>
|
31
|
+
</category>
|
32
|
+
<clinicalStatus value="active"/>
|
33
|
+
<verificationStatus value="confirmed"/>
|
34
|
+
<severity><!-- The fever is mild -->
|
35
|
+
<coding>
|
36
|
+
<system value="http://snomed.info/sct"/>
|
37
|
+
<code value="255604002"/>
|
38
|
+
<display value="Mild"/>
|
39
|
+
</coding>
|
40
|
+
</severity>
|
41
|
+
<onsetDateTime value="2013-04-02"/><!-- Problem began on April second -->
|
42
|
+
<!-- No remission means no <rebatement> -->
|
43
|
+
<evidence><!-- Problem is confirmed by 39 degrees Celsius -->
|
44
|
+
<code>
|
45
|
+
<coding>
|
46
|
+
<system value="http://snomed.info/sct"/>
|
47
|
+
<code value="258710007"/>
|
48
|
+
<display value="degrees C"/>
|
49
|
+
</coding>
|
50
|
+
</code>
|
51
|
+
<detail>
|
52
|
+
<reference value="Observation/f202"/>
|
53
|
+
<display value="Temperature"/>
|
54
|
+
</detail>
|
55
|
+
</evidence>
|
56
|
+
<bodySite><!-- Fever applies to whole body -->
|
57
|
+
<coding>
|
58
|
+
<system value="http://snomed.info/sct"/>
|
59
|
+
<code value="38266002"/>
|
60
|
+
<display value="Entire body as a whole"/>
|
61
|
+
</coding>
|
62
|
+
</bodySite>
|
63
|
+
</Condition>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><Condition xmlns="http://hl7.org/fhir">
|
2
|
+
<id value="f205"/>
|
3
|
+
<text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: f205</p><p><b>patient</b>: <a>Roel</a></p><p><b>asserter</b>: <a>Practitioner/f201</a></p><p><b>dateRecorded</b>: Apr 4, 2013</p><p><b>code</b>: Bacterial infectious disease <span>(Details : {SNOMED CT code '87628006' = '87628006', given as 'Bacterial infectious disease'})</span></p><p><b>clinicalStatus</b>: active</p><p><b>verificationStatus</b>: differential</p></div></text><patient>
|
4
|
+
<reference value="Patient/f201"/>
|
5
|
+
<display value="Roel"/>
|
6
|
+
</patient>
|
7
|
+
<asserter>
|
8
|
+
<reference value="Practitioner/f201"/>
|
9
|
+
</asserter>
|
10
|
+
<dateRecorded value="2013-04-04"/><!-- The problem was entered at April fourth -->
|
11
|
+
<code><!-- The problem is a bacterial infection -->
|
12
|
+
<coding>
|
13
|
+
<system value="http://snomed.info/sct"/>
|
14
|
+
<code value="87628006"/>
|
15
|
+
<display value="Bacterial infectious disease"/>
|
16
|
+
</coding>
|
17
|
+
</code>
|
18
|
+
<clinicalStatus value="active"/>
|
19
|
+
<verificationStatus value="differential"/>
|
20
|
+
</Condition>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<DiagnosticReport xmlns="http://hl7.org/fhir">
|
3
|
+
<status value="final"/>
|
4
|
+
<code>
|
5
|
+
<coding>
|
6
|
+
<system value="http://snomed.info/sct"/>
|
7
|
+
<code value="429858000"/>
|
8
|
+
</coding>
|
9
|
+
</code>
|
10
|
+
<subject>
|
11
|
+
<reference value="Patient/foo"/>
|
12
|
+
</subject>
|
13
|
+
<effectiveDateTime value="2015-10-15T16:25:44Z"/>
|
14
|
+
<issued value="2015-10-15T16:25:26Z"/>
|
15
|
+
<performer>
|
16
|
+
<reference value="Practitioner/foo"/>
|
17
|
+
</performer>
|
18
|
+
</DiagnosticReport>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Encounter xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<id value="f201"/>
|
4
|
+
<status value="finished"/>
|
5
|
+
<class value="outpatient"/>
|
6
|
+
<patient>
|
7
|
+
<reference value="Patient/f201"/>
|
8
|
+
</patient>
|
9
|
+
<participant>
|
10
|
+
<individual>
|
11
|
+
<reference value="Practitioner/f201"/>
|
12
|
+
</individual>
|
13
|
+
</participant>
|
14
|
+
<serviceProvider>
|
15
|
+
<reference value="Organization/f201"/>
|
16
|
+
</serviceProvider>
|
17
|
+
</Encounter>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Encounter xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<id value="f202"/>
|
4
|
+
<status value="finished"/>
|
5
|
+
<class value="inpatient"/>
|
6
|
+
<patient>
|
7
|
+
<reference value="Patient/f201"/>
|
8
|
+
</patient>
|
9
|
+
<participant>
|
10
|
+
<individual>
|
11
|
+
<reference value="Practitioner/f201"/>
|
12
|
+
</individual>
|
13
|
+
</participant>
|
14
|
+
<serviceProvider>
|
15
|
+
<reference value="Organization/f201"/>
|
16
|
+
</serviceProvider>
|
17
|
+
</Encounter>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Observation xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<id value="f202"/>
|
4
|
+
<code><!--Kind of observation = Oral Temperature-->
|
5
|
+
<coding>
|
6
|
+
<system value="http://snomed.info/sct"/>
|
7
|
+
<code value="415945006"/>
|
8
|
+
<display value="Oral temperature"/>
|
9
|
+
</coding>
|
10
|
+
<coding>
|
11
|
+
<system value="http://loinc.org"/>
|
12
|
+
<code value="8310-5"/>
|
13
|
+
<display value="Body temperature"/>
|
14
|
+
</coding>
|
15
|
+
<text value="Body temperature"/>
|
16
|
+
</code>
|
17
|
+
<valueQuantity><!--Temperature=39 degrees Celsius-->
|
18
|
+
<value value="39"/>
|
19
|
+
<units value="degrees C"/>
|
20
|
+
<system value="http://snomed.info/sct"/>
|
21
|
+
<code value="258710007"/>
|
22
|
+
</valueQuantity>
|
23
|
+
<interpretation>
|
24
|
+
<coding>
|
25
|
+
<system value="http://hl7.org/fhir/v2/0078" />
|
26
|
+
<code value="H" />
|
27
|
+
</coding>
|
28
|
+
</interpretation>
|
29
|
+
<issued value="2013-04-04T13:27:00+01:00"/><!--Oral temperature was measured on April fourth-->
|
30
|
+
<status value="entered-in-error"/><!--In the meantime a new oral temperature is measured-->
|
31
|
+
<reliability value="questionable"/><!--http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3418963/-->
|
32
|
+
<bodySiteCodeableConcept>
|
33
|
+
<coding>
|
34
|
+
<system value="http://snomed.info/sct"/>
|
35
|
+
<code value="38266002"/>
|
36
|
+
<display value="Entire body as a whole"/>
|
37
|
+
</coding>
|
38
|
+
</bodySiteCodeableConcept>
|
39
|
+
<method>
|
40
|
+
<coding>
|
41
|
+
<system value="http://snomed.info/sct"/>
|
42
|
+
<code value="89003005"/>
|
43
|
+
<display value="Oral temperature taking"/>
|
44
|
+
</coding>
|
45
|
+
</method>
|
46
|
+
<!--No identifier could be provided to this observation-->
|
47
|
+
<subject><!--It entails Roel's temperature-->
|
48
|
+
<reference value="Patient/f201"/>
|
49
|
+
<display value="Roel"/>
|
50
|
+
</subject>
|
51
|
+
<performer>
|
52
|
+
<reference value="Practitioner/f201"/>
|
53
|
+
</performer>
|
54
|
+
<referenceRange> <!-- 0..* Provides guide for interpretation -->
|
55
|
+
<low>
|
56
|
+
<value value="37.5"/>
|
57
|
+
<units value="degrees C"/>
|
58
|
+
</low>
|
59
|
+
</referenceRange>
|
60
|
+
</Observation>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Patient xmlns="http://hl7.org/fhir">
|
3
|
+
<active value="true"/>
|
4
|
+
<name>
|
5
|
+
<text value="John Random"/>
|
6
|
+
</name>
|
7
|
+
<gender value="male"/>
|
8
|
+
<birthDate value="1960-06-06"/>
|
9
|
+
<deceasedBoolean value="false"/>
|
10
|
+
<careProvider>
|
11
|
+
<reference value="Practitioner/foo"/>
|
12
|
+
</careProvider>
|
13
|
+
<managingOrganization>
|
14
|
+
<reference value="Organization/foo"/>
|
15
|
+
</managingOrganization>
|
16
|
+
</Patient>
|