-
Notifications
You must be signed in to change notification settings - Fork 10
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
Extract Fields From FHIR Bundle #982
Conversation
I talked with the HL7 SMEs. They stated that the MSH fields' most important sub-fields are the first two, and the ORC field's most important sub-fields are the first three. This basically means that we shouldn't just return a single ID for each of these new methods we're adding. Honestly, we might as well include all of the sub-fields. We should either add additional methods for each sub-field, have the existing method return all the important sub-fields with some delimiter (e.g. |
…sted-intermediary into story/621/extract-ids
Yes. I noticed that we would have to get more than a sub-field. I'm taking the namespace-id, universal-id, and universal-type-id for the most part. I already have a method that concatenates and joins the fields with a caret. I still haven't looked into isolating each id for later use. Right now, I'm only spitting out something like: |
etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/hapi/HapiOrder.java
Outdated
Show resolved
Hide resolved
etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/orders/Order.java
Outdated
Show resolved
Hide resolved
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.
Great job on this PR! I just left a few minor comments
etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/hapi/HapiOrder.java
Outdated
Show resolved
Hide resolved
etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/hapi/HapiResult.java
Outdated
Show resolved
Hide resolved
etor/src/test/groovy/gov/hhs/cdc/trustedintermediary/external/hapi/HapiResultTest.groovy
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
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.
Great work!
|
||
@Override | ||
public String getFhirResourceId() { | ||
return innerResource.getIdElement().getIdPart(); |
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.
@luis-pabon-tf Any idea why it shows that this method is not covered by the tests in HapiOrderTest and HapiResultTest?
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 merged this before seeing this was commented. Let's keep track of test coverage for this and make another PR to fix it if necessary.
Extract Fields From FHIR Bundle
This PR adds the logic to extract the following fields from the FHIR bundle:
These fields are extracted from orders and results.
Issue
#621
Checklist