Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FI-3445 Add media and media.link back to US Core v7 DiagnosticReport must support #210

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions lib/us_core_test_kit/generated/v7.0.0/metadata.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/us_core_test_kit/generated/v7.0.0/us_core_test_suite.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,15 @@ def update_smoking_status_effective
must_supports[:elements] << { path: 'effective[x]' }
end

# US Core v6.1.0 Patch FI-44693, Add MustSupport choice between Practitioner.address and PractitionerRole
# US Core v6.1.0 Patch FHIR-44693, Add MustSupport choice between Practitioner.address and PractitionerRole
# This is fixed formally in US Core v7
def remove_practitioner_address
return unless profile.type == 'Practitioner'

must_supports[:elements].delete_if { |element| element[:path].start_with?('address') }
end

# US Core v6.1.0 Patch FI-46240, Remove the Must Support on media and media.link
# US Core v6.1.0 Patch FHIR-46240, Remove the Must Support on media and media.link
def remove_diagnosticreport_media
return unless profile.id == 'us-core-diagnosticreport-note'
must_supports[:elements].delete_if { |element| element[:path].start_with?('media') }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def handle_special_cases
us_core_6_extractor.add_patient_uscdi_elements
add_must_support_choices
us_core_6_extractor.remove_practitioner_address
us_core_6_extractor.remove_diagnosticreport_media
end

def add_must_support_choices
Expand Down
3 changes: 2 additions & 1 deletion lib/us_core_test_kit/generator/templates/suite.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ module USCoreTestKit
group from: :<%= smart_app_launch_id %><% if us_core_7_and_above? %>,
required_suite_options: USCoreOptions::SMART_1_REQUIREMENT
group from: :<%= smart_app_launch_id %>,
required_suite_options: USCoreOptions::SMART_2_REQUIREMENT
required_suite_options: USCoreOptions::SMART_2_REQUIREMENT,
id: :<%= smart_app_launch_id %>_stu2
group from: :<%= smart_app_launch_id %>_stu2_2,
required_suite_options: USCoreOptions::SMART_2_2_REQUIREMENT<% end %>

Expand Down
Loading