davinci_dtr_test_kit 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_dinner_static_questionnaire_response_conformance_test.rb +15 -0
  3. data/lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_dinner_static_questionnaire_response_correctness_test.rb +30 -0
  4. data/lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_questionnaire_workflow_group.rb +15 -5
  5. data/lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_smart_app_dinner_questionnaire_package_request_test.rb +1 -1
  6. data/lib/davinci_dtr_test_kit/client_groups/shared/dtr_questionnaire_response_basic_conformance_test.rb +3 -7
  7. data/lib/davinci_dtr_test_kit/client_groups/shared/dtr_questionnaire_response_pre_population_test.rb +9 -5
  8. data/lib/davinci_dtr_test_kit/cql_test.rb +182 -137
  9. data/lib/davinci_dtr_test_kit/docs/dtr_light_ehr_suite_description_v201.md +29 -0
  10. data/lib/davinci_dtr_test_kit/dtr_light_ehr_suite.rb +38 -25
  11. data/lib/davinci_dtr_test_kit/dtr_options.rb +7 -0
  12. data/lib/davinci_dtr_test_kit/dtr_questionnaire_response_validation.rb +118 -75
  13. data/lib/davinci_dtr_test_kit/dtr_smart_app_suite.rb +6 -3
  14. data/lib/davinci_dtr_test_kit/fixture_loader.rb +6 -84
  15. data/lib/davinci_dtr_test_kit/fixtures.rb +43 -48
  16. data/lib/davinci_dtr_test_kit/mock_auth_server.rb +101 -18
  17. data/lib/davinci_dtr_test_kit/mock_ehr.rb +32 -24
  18. data/lib/davinci_dtr_test_kit/mock_payer.rb +41 -64
  19. data/lib/davinci_dtr_test_kit/payer_server_groups/adaptive_next_questionnaire_expressions_test.rb +2 -2
  20. data/lib/davinci_dtr_test_kit/payer_server_groups/payer_server_adaptive_request_validation_test.rb +2 -1
  21. data/lib/davinci_dtr_test_kit/payer_server_groups/payer_server_adaptive_response_validation_test.rb +6 -5
  22. data/lib/davinci_dtr_test_kit/payer_server_groups/payer_server_next_request_validation_test.rb +1 -1
  23. data/lib/davinci_dtr_test_kit/payer_server_groups/static_form_request_validation_test.rb +2 -1
  24. data/lib/davinci_dtr_test_kit/payer_server_groups/static_form_response_validation_test.rb +6 -4
  25. data/lib/davinci_dtr_test_kit/tags.rb +1 -0
  26. data/lib/davinci_dtr_test_kit/urls.rb +13 -10
  27. data/lib/davinci_dtr_test_kit/validation_test.rb +2 -1
  28. data/lib/davinci_dtr_test_kit/version.rb +1 -1
  29. data/lib/davinci_dtr_test_kit.rb +1 -1
  30. metadata +24 -8
  31. data/lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_prepopulation_representation_attestation_test.rb +0 -33
  32. data/lib/davinci_dtr_test_kit/client_groups/resp_assist_device/dtr_full_ehr_questionnaire_workflow_group.rb +0 -19
  33. /data/lib/davinci_dtr_test_kit/fixtures/{pre_populated_questionnaire_response.json → respiratory_assist_device/pre_populated_questionnaire_response.json} +0 -0
  34. /data/lib/davinci_dtr_test_kit/fixtures/{questionnaire_package.json → respiratory_assist_device/questionnaire_package.json} +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davinci_dtr_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Naden
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-09-19 00:00:00.000000000 Z
13
+ date: 2024-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: inferno_core
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.42
21
+ version: 0.5.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.4.42
28
+ version: 0.5.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: jwt
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -40,6 +40,20 @@ dependencies:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '2.6'
43
+ - !ruby/object:Gem::Dependency
44
+ name: smart_app_launch_test_kit
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 0.4.4
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: 0.4.4
43
57
  description: Test Kit for the Da Vinci Documentation Templates and Rules (DTR) FHIR
44
58
  Implementation Guide
45
59
  email:
@@ -55,10 +69,11 @@ files:
55
69
  - lib/davinci_dtr_test_kit/auth_groups/token_validation_test.rb
56
70
  - lib/davinci_dtr_test_kit/client_groups/dinner_adaptive/dtr_smart_app_questionnaire_workflow_group.rb
57
71
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_dinner_questionnaire_package_request_test.rb
72
+ - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_dinner_static_questionnaire_response_conformance_test.rb
73
+ - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_dinner_static_questionnaire_response_correctness_test.rb
58
74
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_launch_attestation_test.rb
59
75
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_prepopulation_attestation_test.rb
60
76
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_prepopulation_override_attestation_test.rb
61
- - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_prepopulation_representation_attestation_test.rb
62
77
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_questionnaire_workflow_group.rb
63
78
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_rendering_enabled_questions_attestation_test.rb
64
79
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_full_ehr_store_attestation_test.rb
@@ -68,7 +83,6 @@ files:
68
83
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_smart_app_questionnaire_response_save_test.rb
69
84
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_smart_app_questionnaire_workflow_group.rb
70
85
  - lib/davinci_dtr_test_kit/client_groups/dinner_static/dtr_smart_app_rendering_enabled_questions_attestation_test.rb
71
- - lib/davinci_dtr_test_kit/client_groups/resp_assist_device/dtr_full_ehr_questionnaire_workflow_group.rb
72
86
  - lib/davinci_dtr_test_kit/client_groups/resp_assist_device/dtr_questionnaire_package_group.rb
73
87
  - lib/davinci_dtr_test_kit/client_groups/resp_assist_device/dtr_questionnaire_rendering_attestation_test.rb
74
88
  - lib/davinci_dtr_test_kit/client_groups/resp_assist_device/dtr_questionnaire_rendering_group.rb
@@ -81,10 +95,12 @@ files:
81
95
  - lib/davinci_dtr_test_kit/client_groups/shared/dtr_questionnaire_response_pre_population_test.rb
82
96
  - lib/davinci_dtr_test_kit/cql_test.rb
83
97
  - lib/davinci_dtr_test_kit/docs/dtr_full_ehr_suite_description_v201.md
98
+ - lib/davinci_dtr_test_kit/docs/dtr_light_ehr_suite_description_v201.md
84
99
  - lib/davinci_dtr_test_kit/docs/dtr_payer_server_suite_description_v201.md
85
100
  - lib/davinci_dtr_test_kit/docs/dtr_smart_app_suite_description_v201.md
86
101
  - lib/davinci_dtr_test_kit/dtr_full_ehr_suite.rb
87
102
  - lib/davinci_dtr_test_kit/dtr_light_ehr_suite.rb
103
+ - lib/davinci_dtr_test_kit/dtr_options.rb
88
104
  - lib/davinci_dtr_test_kit/dtr_payer_server_suite.rb
89
105
  - lib/davinci_dtr_test_kit/dtr_questionnaire_response_validation.rb
90
106
  - lib/davinci_dtr_test_kit/dtr_smart_app_suite.rb
@@ -99,8 +115,8 @@ files:
99
115
  - lib/davinci_dtr_test_kit/fixtures/dinner_adaptive/questionnaire_dinner_order_adaptive.json
100
116
  - lib/davinci_dtr_test_kit/fixtures/dinner_static/questionnaire_dinner_order_static.json
101
117
  - lib/davinci_dtr_test_kit/fixtures/dinner_static/questionnaire_response_dinner_order_static.json
102
- - lib/davinci_dtr_test_kit/fixtures/pre_populated_questionnaire_response.json
103
- - lib/davinci_dtr_test_kit/fixtures/questionnaire_package.json
118
+ - lib/davinci_dtr_test_kit/fixtures/respiratory_assist_device/pre_populated_questionnaire_response.json
119
+ - lib/davinci_dtr_test_kit/fixtures/respiratory_assist_device/questionnaire_package.json
104
120
  - lib/davinci_dtr_test_kit/mock_auth_server.rb
105
121
  - lib/davinci_dtr_test_kit/mock_ehr.rb
106
122
  - lib/davinci_dtr_test_kit/mock_payer.rb
@@ -1,33 +0,0 @@
1
- require_relative '../../urls'
2
-
3
- module DaVinciDTRTestKit
4
- class DTRFullEHRStaticDinnerPrepopulationRepresentationAttestationTest < Inferno::Test
5
- include URLs
6
-
7
- id :dtr_full_ehr_dinner_static_prepopulation_representation_attestation
8
- title 'Verify the QuestionnaireResponse representation of the item data sources (Attestation)'
9
- description %(
10
- Attest that the QuestionnaireResponse representation of the stored answers includes the required
11
- source indicators, including `auto`, `override`, and `manual`.
12
- )
13
- input :access_token
14
-
15
- run do
16
- wait(
17
- identifier: access_token,
18
- message: %(
19
- I attest that the QuestionnaireResponse representation of the stored answers includes the
20
- [orgin extension with source details](https://build.fhir.org/ig/HL7/davinci-dtr/StructureDefinition-information-origin.html),
21
- including on the following fields entered during the tests:
22
- - PBD.1 (Last Name): `auto`
23
- - PBD.2 (First Name): `override`
24
- - 3.1 (dinner choice): `manual`
25
-
26
- [Click here](#{resume_pass_url}?token=#{access_token}) if the above statement is **true**.
27
-
28
- [Click here](#{resume_fail_url}?token=#{access_token}) if the above statement is **false**.
29
- )
30
- )
31
- end
32
- end
33
- end
@@ -1,19 +0,0 @@
1
- require_relative 'dtr_questionnaire_package_group'
2
- require_relative 'dtr_questionnaire_rendering_group'
3
-
4
- module DaVinciDTRTestKit
5
- class DTRFullEHRQuestionnaireWorkflowGroup < Inferno::TestGroup
6
- id :dtr_full_ehr_questionnaire_workflow
7
- title 'Respiratory Assist Device Questionnaire Workflow'
8
- description %(
9
- This workflow validates that a DTR Full EHR Client can perform a full DTR Questionnaire workflow using a canned
10
- Questionnaire for a respiratory assist device order:
11
-
12
- 1. Fetch the questionnaire package
13
- 2. Render the questionnaire
14
- )
15
-
16
- group from: :dtr_questionnaire_package
17
- group from: :dtr_questionnaire_rendering
18
- end
19
- end