uds_plus_test_kit 0.9.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/uds_plus_test_kit/examples/manifest.json +76 -14
  3. data/lib/uds_plus_test_kit/input_resource_tests/read_immunization_test.rb +54 -0
  4. data/lib/uds_plus_test_kit/input_resource_tests/read_lab_test.rb +54 -0
  5. data/lib/uds_plus_test_kit/input_resource_tests/read_med_request_test.rb +54 -0
  6. data/lib/uds_plus_test_kit/input_resource_tests/read_med_statement_test.rb +54 -0
  7. data/lib/uds_plus_test_kit/input_resource_tests/read_related_person_test.rb +54 -0
  8. data/lib/uds_plus_test_kit/input_resource_tests/read_service_request_test.rb +54 -0
  9. data/lib/uds_plus_test_kit/input_resource_tests/read_special_observation_test.rb +54 -0
  10. data/lib/uds_plus_test_kit/input_resource_tests/resource_group.rb +30 -2
  11. data/lib/uds_plus_test_kit/manifest_tests/invalid_type_test.rb +4 -1
  12. data/lib/uds_plus_test_kit/manifest_tests/uds_plus_test_group.rb +16 -2
  13. data/lib/uds_plus_test_kit/post_tests/post_group.rb +59 -0
  14. data/lib/uds_plus_test_kit/post_tests/post_manifest_test.rb +41 -0
  15. data/lib/uds_plus_test_kit/post_tests/read_post_test.rb +32 -0
  16. data/lib/uds_plus_test_kit/uds_plus_test_suite.rb +40 -0
  17. data/lib/uds_plus_test_kit/validate_immunization_test.rb +33 -0
  18. data/lib/uds_plus_test_kit/validate_income_test.rb +7 -10
  19. data/lib/uds_plus_test_kit/validate_lab_test.rb +65 -0
  20. data/lib/uds_plus_test_kit/validate_med_request_test.rb +33 -0
  21. data/lib/uds_plus_test_kit/validate_med_statement_test.rb +33 -0
  22. data/lib/uds_plus_test_kit/validate_related_person_test.rb +33 -0
  23. data/lib/uds_plus_test_kit/validate_service_request_test.rb +33 -0
  24. data/lib/uds_plus_test_kit/validate_sexual_orientation_test.rb +6 -9
  25. data/lib/uds_plus_test_kit/validate_special_observation_test.rb +65 -0
  26. data/lib/uds_plus_test_kit/version.rb +2 -2
  27. metadata +19 -4
  28. data/lib/uds_plus_test_kit/examples/manifest_2.json +0 -101
  29. data/lib/uds_plus_test_kit/examples/manifest_not_deidentified.json +0 -67
@@ -1,101 +0,0 @@
1
- {
2
- "resourceType": "Parameters",
3
- "id": "example",
4
- "meta": {
5
- "extension": [
6
- {
7
- "url": "http://hl7.org/fhir/StructureDefinition/instance-name",
8
- "valueString": "UDS+ Manifest File Example"
9
- },
10
- {
11
- "url": "http://hl7.org/fhir/StructureDefinition/instance-description",
12
- "valueMarkdown": "This is an example of a Manifest file submitted as a parameter to the UDS+ $import operation."
13
- }
14
- ],
15
- "profile": [
16
- "http://hl7.org/fhir/us/uds-plus/StructureDefinition/uds-plus-import-manifest"
17
- ]
18
- },
19
- "parameter": [
20
- {
21
- "name": "inputFormat",
22
- "valueCode": "application/ndjson"
23
- },
24
- {
25
- "name": "inputSource",
26
- "valueUrl": "http://localhost:4567/"
27
- },
28
- {
29
- "name": "storageDetail",
30
- "valueCode": "https"
31
- },
32
- {
33
- "name": "udsData",
34
- "part": [
35
- {
36
- "name": "type",
37
- "valueCode": "Patient"
38
- },
39
- {
40
- "name": "url",
41
- "valueUrl": "http://localhost:4567/custom/uds_plus/examples/patient"
42
- },
43
- {
44
- "name": "expirationTime",
45
- "valueDateTime": "2022-12-14T07:15:07-08:00"
46
- }
47
- ]
48
- },
49
- {
50
- "name": "udsData",
51
- "part": [
52
- {
53
- "name": "type",
54
- "valueCode": "Condition"
55
- },
56
- {
57
- "name": "url",
58
- "valueUrl": "http://localhost:4567/custom/uds_plus/examples/condition"
59
- },
60
- {
61
- "name": "expirationTime",
62
- "valueDateTime": "2022-12-14T07:15:07-08:00"
63
- }
64
- ]
65
- },
66
- {
67
- "name": "udsData",
68
- "part": [
69
- {
70
- "name": "type",
71
- "valueCode": "Encounter"
72
- },
73
- {
74
- "name": "url",
75
- "valueUrl": "http://localhost:4567/custom/uds_plus/examples/encounter"
76
- },
77
- {
78
- "name": "expirationTime",
79
- "valueDateTime": "2022-12-14T07:15:07-08:00"
80
- }
81
- ]
82
- },
83
- {
84
- "name": "udsData",
85
- "part": [
86
- {
87
- "name": "type",
88
- "valueCode": "Condition"
89
- },
90
- {
91
- "name": "url",
92
- "valueUrl": "http://localhost:4567/custom/uds_plus/examples/condition"
93
- },
94
- {
95
- "name": "expirationTime",
96
- "valueDateTime": "2022-12-14T07:15:07-08:00"
97
- }
98
- ]
99
- }
100
- ]
101
- }
@@ -1,67 +0,0 @@
1
- {
2
- "resourceType": "Parameters",
3
- "id": "example",
4
- "meta": {
5
- "extension": [
6
- {
7
- "url": "http://hl7.org/fhir/StructureDefinition/instance-name",
8
- "valueString": "UDS+ Manifest File Example"
9
- },
10
- {
11
- "url": "http://hl7.org/fhir/StructureDefinition/instance-description",
12
- "valueMarkdown": "This is an example of a Manifest file submitted as a parameter to the UDS+ $import operation."
13
- }
14
- ],
15
- "profile": [
16
- "http://hl7.org/fhir/us/uds-plus/StructureDefinition/uds-plus-import-manifest"
17
- ]
18
- },
19
- "parameter": [
20
- {
21
- "name": "inputFormat",
22
- "valueCode": "application/ndjson"
23
- },
24
- {
25
- "name": "inputSource",
26
- "valueUrl": "http://localhost:4567/"
27
- },
28
- {
29
- "name": "storageDetail",
30
- "valueCode": "https"
31
- },
32
- {
33
- "name": "udsData",
34
- "part": [
35
- {
36
- "name": "type",
37
- "valueCode": "Patient"
38
- },
39
- {
40
- "name": "url",
41
- "valueUrl": "http://localhost:4567/custom/uds_plus/examples/invalid_patient"
42
- },
43
- {
44
- "name": "expirationTime",
45
- "valueDateTime": "2022-12-14T07:15:07-08:00"
46
- }
47
- ]
48
- },
49
- {
50
- "name": "udsData",
51
- "part": [
52
- {
53
- "name": "type",
54
- "valueCode": "Condition"
55
- },
56
- {
57
- "name": "url",
58
- "valueUrl": "http://localhost:4567/custom/uds_plus/examples/invalid_condition"
59
- },
60
- {
61
- "name": "expirationTime",
62
- "valueDateTime": "2022-12-14T07:15:07-08:00"
63
- }
64
- ]
65
- }
66
- ]
67
- }