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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58953a601ac484d36b51cd1e52e42d856ce07ad9e1d91f40e1d6f50aab8c1f46
4
- data.tar.gz: 0bf259cef836ccbaa4239398b5e0685a4d83a4646a214c11f058aaa456fd9e2b
3
+ metadata.gz: 650a85c007fb04d840c6f168157bd88aba95322bc9519842f0b4ecd787c11754
4
+ data.tar.gz: '0518d25606072dd83c41d44699f4af1943275e67e1357ebe5086ac453c8b237e'
5
5
  SHA512:
6
- metadata.gz: b1f9122787140d5267bd8924c1b721ff83c324e21ddf3d2885e6aa6afcd40f8bd2bdaec0226e6a09e05b14a08fda3d65f2b4582c6ed5b1ba1e15a531760bf339
7
- data.tar.gz: de95f83c856a454b4acea54958f1722eec71f9a3717244fc256cddcaee6463882b38ce54862325018251d8d9b9297cf21b31924945b05396efd919de059f01eb
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
@@ -1,3 +1,3 @@
1
1
  module IPS
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
data/lib/ips_test_kit.rb CHANGED
@@ -48,6 +48,7 @@ module IPS
48
48
  group from: :ips_immunization
49
49
  group from: :ips_media_observation
50
50
  group from: :ips_medication
51
+ group from: :ips_medication_request
51
52
  group from: :ips_medication_statement
52
53
  group do
53
54
  title 'Observation Profiles'
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.0
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: 2022-10-28 00:00:00.000000000 Z
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