-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update ig package * add medication request group * bump version
- Loading branch information
1 parent
c3da421
commit 99fb43b
Showing
6 changed files
with
98 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters