generated from inferno-framework/inferno-template
-
Notifications
You must be signed in to change notification settings - Fork 0
3. Add Implementation Guide Package
Elsa Perelli edited this page Oct 23, 2024
·
10 revisions
Add an implementation guide package to the test kit and validate a resource against a profile included in the implementation guide. There are two ways to do this, either define a published ig and version or download an ig package in lib\inferno_template\igs and define the package file. For this exercise, we're using US Core 3.1.1 profiles and we will simply define this published ig.
- Inferno Framework Test Kit Repository Layout overview
- Inferno Framework Assertions overview
- Inferno Framework Assert Valid Resource DSL definition
- Uncomment the following line in
inferno_template.rb:
igs 'hl7.fhir.us.core#3.1.1' # Use this method for published IGs/versions- Add the following to
patient_group.rb:
run do
assert_resource_type(:patient)
assert_valid_resource(profile_url: 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient')
end- Add the following to
inferno_template.rb:
assert_valid_bundle_entries(
resource_types: {
'Condition': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition'
}
)link to the diff between step-3 and step-3-solution branches: https://github.com/inferno-training/inferno-tutorial/compare/step-3...step-3-solution
Note: When running this branch with the Inferno Reference Server and Patient 85, Test 2.02 will fail. This is an expected failure since Patient 85 in the reference server no longer conforms to USCore 3.1.1.