-
Notifications
You must be signed in to change notification settings - Fork 6
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-3059 MustSupport Choice between Practitioner.address and PractitionerRole #198
Conversation
102f75c
to
b7d209c
Compare
target_profile_with_version = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole|#{metadata.profile_version}" | ||
|
||
practitioner_roles.any? do |pr| | ||
validator_response = validator.validate(pr, target_profile_with_version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to unify this validation code and the validation code in the reference resolution test: https://github.com/inferno-framework/us-core-test-kit/blob/main/lib/us_core_test_kit/reference_resolution_test.rb#L159
end | ||
end | ||
|
||
messages = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think from here down should just be:
missing_must_support_message = <<~MESSAGE
Could not find US Core PractitionerRole...in US Core Practitioner Profile
Resources. Please use patients with more information.
MESSAGE
assert @missing_elements.blank?, missing_must_support_message
* auto generate practitioner_address_test for each allowed version * remove commented codes --------- Co-authored-by: Yunwei Wang <>
Refactored to automate practitioner_address_test generation. |
Summary
This PR fixes GitHub Issue onc-healthit/onc-certification-g10-test-kit#559
Changes:
Testing Guidance
Inferno Reference Server does not support this use case, ie Practitioner does not have address but there is PractitionerRole references this Practitioner
There are three unit tests covers this use case.