Skip to content

Commit

Permalink
FI-1963: Update IG (#22)
Browse files Browse the repository at this point in the history
* update ig package

* add medication request group

* bump version
  • Loading branch information
Jammjammjamm authored May 3, 2023
1 parent c3da421 commit 99fb43b
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 32 deletions.
87 changes: 56 additions & 31 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.7)
activesupport (6.1.7.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.1)
addressable (2.8.4)
public_suffix (>= 2.0.2, < 6.0)
base62-rb (0.3.1)
bcp47 (0.3.3)
i18n
blueprinter (0.25.2)
byebug (11.1.3)
coderay (1.1.3)
concurrent-ruby (1.1.10)
connection_pool (2.3.0)
concurrent-ruby (1.2.2)
connection_pool (2.4.0)
crack (0.4.5)
rexml
database_cleaner (1.99.0)
Expand Down Expand Up @@ -62,7 +63,8 @@ GEM
dry-core (~> 0.5, >= 0.5)
dry-inflector (~> 0.1, >= 0.1.2)
dry-struct (~> 1.0)
dry-transformer (0.1.1)
dry-transformer (1.0.1)
zeitwerk (~> 2.6)
dry-types (1.5.1)
concurrent-ruby (~> 1.0)
dry-container (~> 0.3)
Expand All @@ -71,7 +73,7 @@ GEM
dry-logic (~> 1.0, >= 1.0.2)
factory_bot (6.2.1)
activesupport (>= 5.0.0)
faraday (1.10.2)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
Expand Down Expand Up @@ -126,23 +128,24 @@ GEM
dry-configurable (~> 0.13, >= 0.13.0)
hanami-utils (~> 2.0.beta)
rack (~> 2.0)
hanami-router (2.0.0.beta2)
hanami-router (2.0.0)
mustermann (~> 1.0)
mustermann-contrib (~> 1.0)
rack (~> 2.0)
hanami-utils (2.0.0.beta1)
hanami-utils (2.0.0)
concurrent-ruby (~> 1.0)
dry-transformer (~> 0.1)
dry-transformer (~> 1.0, < 2)
hansi (0.2.1)
hashdiff (1.0.1)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
i18n (1.12.0)
i18n (1.13.0)
concurrent-ruby (~> 1.0)
ice_nine (0.11.2)
inferno_core (0.4.2)
inferno_core (0.4.13)
activesupport (~> 6.1)
base62-rb (= 0.3.1)
blueprinter (= 0.25.2)
dotenv (~> 2.7)
dry-configurable (= 0.13.0)
Expand All @@ -154,7 +157,7 @@ GEM
fhir_client (>= 5.0.3)
fhir_models (>= 4.2.2)
hanami-controller (= 2.0.0.beta1)
hanami-router (= 2.0.0.beta2)
hanami-router (= 2.0.0)
oj (= 3.11.0)
pry
pry-byebug
Expand All @@ -164,30 +167,33 @@ GEM
sidekiq (~> 6.5.6)
sqlite3 (~> 1.4)
thor (~> 1.2.1)
tty-markdown (~> 0.7.1)
io-console (0.5.11)
irb (1.4.2)
reline (>= 0.3.0)
jwt (2.5.0)
jwt (2.7.0)
kramdown (2.4.0)
rexml
method_source (1.0.0)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
minitest (5.16.3)
mime-types-data (3.2023.0218.1)
minitest (5.18.0)
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.2.3)
multipart-post (2.3.0)
mustermann (1.1.2)
ruby2_keywords (~> 0.0.1)
mustermann-contrib (1.1.2)
hansi (~> 0.2.0)
mustermann (= 1.1.2)
netrc (0.11.0)
nio4r (2.5.8)
nokogiri (1.13.9-arm64-darwin)
nio4r (2.5.9)
nokogiri (1.14.3-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.9-x86_64-darwin)
nokogiri (1.14.3-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.13.9-x86_64-linux)
nokogiri (1.14.3-x86_64-linux)
racc (~> 1.4)
oauth2 (1.4.11)
faraday (>= 0.17.3, < 3.0)
Expand All @@ -196,19 +202,21 @@ GEM
multi_xml (~> 0.5)
rack (>= 1.2, < 4)
oj (3.11.0)
pry (0.14.1)
pastel (0.8.0)
tty-color (~> 0.5)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (>= 0.13, < 0.15)
public_suffix (5.0.0)
public_suffix (5.0.1)
puma (5.6.5)
nio4r (~> 2.0)
racc (1.6.0)
rack (2.2.4)
racc (1.6.2)
rack (2.2.7)
rake (13.0.6)
redis (4.8.0)
redis (4.8.1)
reline (0.3.1)
io-console (~> 0.5)
rest-client (2.1.0)
Expand All @@ -217,6 +225,7 @@ GEM
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rexml (3.2.5)
rouge (4.1.0)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
Expand All @@ -236,21 +245,37 @@ GEM
connection_pool (>= 2.2.5, < 3)
rack (~> 2.0)
redis (>= 4.5.0, < 5)
sqlite3 (1.5.3-arm64-darwin)
sqlite3 (1.5.3-x86_64-darwin)
sqlite3 (1.5.3-x86_64-linux)
sqlite3 (1.6.2-arm64-darwin)
sqlite3 (1.6.2-x86_64-darwin)
sqlite3 (1.6.2-x86_64-linux)
strings (0.2.1)
strings-ansi (~> 0.2)
unicode-display_width (>= 1.5, < 3.0)
unicode_utils (~> 1.4)
strings-ansi (0.2.0)
thor (1.2.1)
tilt (2.0.11)
tzinfo (2.0.5)
tilt (2.1.0)
tty-color (0.6.0)
tty-markdown (0.7.2)
kramdown (>= 1.16.2, < 3.0)
pastel (~> 0.8)
rouge (>= 3.14, < 5.0)
strings (~> 0.2.0)
tty-color (~> 0.5)
tty-screen (~> 0.8)
tty-screen (0.8.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
unicode-display_width (2.4.2)
unicode_utils (1.4.0)
webmock (3.18.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
zeitwerk (2.6.4)
zeitwerk (2.6.8)

PLATFORMS
arm64-darwin-21
Expand Down
Binary file added lib/ips/igs/ips_v110.tgz
Binary file not shown.
Binary file removed lib/ips/igs/package.tgz
Binary file not shown.
40 changes: 40 additions & 0 deletions lib/ips/medication_request.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module IPS
class MedicationRequest < Inferno::TestGroup
title 'MedicationRequest (IPS) Tests'
description 'Verify support for the server capabilities required by the MedicationRequest (IPS) profile.'
id :ips_medication_request

test do
title 'Server returns correct MedicationRequest resource from the MedicationRequest read interaction'
description %(
This test will verify that MedicationRequest resources can be read from the server.
)
# link 'http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationRequest-uv-ips'

input :medication_request_id
makes_request :medication_request

run do
fhir_read(:medication_request, medication_request_id, name: :medication_request)

assert_response_status(200)
assert_resource_type(:medication_request)
assert resource.id == medication_request_id,
"Requested resource with id #{medication_request_id}, received resource with id #{resource.id}"
end
end

test do
title 'Server returns MedicationRequest resource that matches the MedicationRequest (IPS) profile'
description %(
This test will validate that the MedicationRequest resource returned from the server matches the MedicationRequest (IPS) profile.
)
# link 'http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationRequest-uv-ips'
uses_request :medication_request

run do
assert_valid_resource(profile_url: 'http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationRequest-uv-ips')
end
end
end
end
2 changes: 1 addition & 1 deletion lib/ips/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module IPS
VERSION = '0.0.2'.freeze
VERSION = '0.1.0'.freeze
end
1 change: 1 addition & 0 deletions lib/ips_test_kit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Suite < Inferno::TestSuite
group from: :ips_immunization
group from: :ips_media_observation
group from: :ips_medication
group from: :ips_medication_request
group from: :ips_medication_statement
group do
title 'Observation Profiles'
Expand Down

0 comments on commit 99fb43b

Please sign in to comment.