fhir-crucible / testscript-engine

Ruby FHIR TestScript execution engine
Apache License 2.0
5 stars 2 forks source link

Load profiles during initialization #63

Closed jhlee-mitre closed 1 year ago

jhlee-mitre commented 2 years ago

Summary

Add loading profiles function while initialization

New behavior

During initialization, if a TestScript contains a profile, the engine reads it and retrieve StructureDefinition contents through the profile's canonical URL. Once a profile is extracted and stored in the engine, it may be reused by multiple tests/asserts.

Code changes

load_profile() in TestScriptRunnable.rb

Testing guidance

Run any TestScript containing profile element (id and reference)