Class: DaVinciPlanNetTestKit::Generator::MustSupportMetadataExtractor
- Inherits:
-
Inferno::DSL::MustSupportMetadataExtractor
- Object
- Inferno::DSL::MustSupportMetadataExtractor
- DaVinciPlanNetTestKit::Generator::MustSupportMetadataExtractor
- Defined in:
- lib/davinci_plan_net_test_kit/generator/must_support_metadata_extractor.rb
Instance Method Summary collapse
-
#handle_special_cases ⇒ Object
SPECIAL CASE ####.
- #must_supports ⇒ Object
-
#remove_observation_data_absent_reason ⇒ Object
ONC and US Core 4.0.0 both clarified that health IT developers that always provide HL7 FHIR “observation” values are not required to demonstrate Health IT Module support for “dataAbsentReason” elements.
Instance Method Details
#handle_special_cases ⇒ Object
SPECIAL CASE ####
17 18 19 20 21 22 23 |
# File 'lib/davinci_plan_net_test_kit/generator/must_support_metadata_extractor.rb', line 17 def handle_special_cases case profile.version when '1.1.0' MustSupportMetadataExtractorUsCore3.new(profile, @must_supports).handle_special_cases end end |
#must_supports ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/davinci_plan_net_test_kit/generator/must_support_metadata_extractor.rb', line 7 def must_supports @must_supports = super handle_special_cases @must_supports end |
#remove_observation_data_absent_reason ⇒ Object
ONC and US Core 4.0.0 both clarified that health IT developers that always provide HL7 FHIR “observation” values are not required to demonstrate Health IT Module support for “dataAbsentReason” elements. Remove MS check for dataAbsentReason and component.dataAbsentReason from vital sign profiles and observation lab profile Smoking status profile does not have MS on dataAbsentReason. It is safe to use profile.type == ‘Observation’
29 30 31 32 33 34 35 |
# File 'lib/davinci_plan_net_test_kit/generator/must_support_metadata_extractor.rb', line 29 def remove_observation_data_absent_reason if profile.type == 'Observation' @must_supports[:elements].delete_if do |element| ['dataAbsentReason', 'component.dataAbsentReason'].include?(element[:path]) end end end |