ips_test_kit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ips/medication_request.rb +40 -0
- data/lib/ips/version.rb +1 -1
- data/lib/ips_test_kit.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 650a85c007fb04d840c6f168157bd88aba95322bc9519842f0b4ecd787c11754
|
4
|
+
data.tar.gz: '0518d25606072dd83c41d44699f4af1943275e67e1357ebe5086ac453c8b237e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50def57c91637dbbc72792d5fa23632bde5f4739a5f5498db9e5f893d01dc90b4c747a5d91d2f00963bcb88abb78c602cabe97bc015a3e9f173881595f442f19
|
7
|
+
data.tar.gz: 516bc1507f00364e7ad0c7ccc11cc461f814126c4db5e0c5d230f914b7edc53df5968ced71b770b92c1ee1b2068955aa52fa939d2316463a14ca8b5a50b5821d
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module IPS
|
2
|
+
class MedicationRequest < Inferno::TestGroup
|
3
|
+
title 'MedicationRequest (IPS) Tests'
|
4
|
+
description 'Verify support for the server capabilities required by the MedicationRequest (IPS) profile.'
|
5
|
+
id :ips_medication_request
|
6
|
+
|
7
|
+
test do
|
8
|
+
title 'Server returns correct MedicationRequest resource from the MedicationRequest read interaction'
|
9
|
+
description %(
|
10
|
+
This test will verify that MedicationRequest resources can be read from the server.
|
11
|
+
)
|
12
|
+
# link 'http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationRequest-uv-ips'
|
13
|
+
|
14
|
+
input :medication_request_id
|
15
|
+
makes_request :medication_request
|
16
|
+
|
17
|
+
run do
|
18
|
+
fhir_read(:medication_request, medication_request_id, name: :medication_request)
|
19
|
+
|
20
|
+
assert_response_status(200)
|
21
|
+
assert_resource_type(:medication_request)
|
22
|
+
assert resource.id == medication_request_id,
|
23
|
+
"Requested resource with id #{medication_request_id}, received resource with id #{resource.id}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
test do
|
28
|
+
title 'Server returns MedicationRequest resource that matches the MedicationRequest (IPS) profile'
|
29
|
+
description %(
|
30
|
+
This test will validate that the MedicationRequest resource returned from the server matches the MedicationRequest (IPS) profile.
|
31
|
+
)
|
32
|
+
# link 'http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationRequest-uv-ips'
|
33
|
+
uses_request :medication_request
|
34
|
+
|
35
|
+
run do
|
36
|
+
assert_valid_resource(profile_url: 'http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationRequest-uv-ips')
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/ips/version.rb
CHANGED
data/lib/ips_test_kit.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ips_test_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MITRE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inferno_core
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- lib/ips/ips_resource_validation.rb
|
103
103
|
- lib/ips/media_observation.rb
|
104
104
|
- lib/ips/medication.rb
|
105
|
+
- lib/ips/medication_request.rb
|
105
106
|
- lib/ips/medication_statement.rb
|
106
107
|
- lib/ips/observation_alcohol_use.rb
|
107
108
|
- lib/ips/observation_pregnancy_edd.rb
|