generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Story/672/marshal results into fhir (#755)
* Initial commit with the needed FHIR resources created in the HapiOrderConverter * Updating Orchestrator with WIP of converter call * Fixed postgres DAO issues and added marshaling to metadata handler * Reverting Azure client registration * Fixing other test * Fixing test * Fixing formatting * Adding test for Domain Response helper methods * Re-adding constructor temporarily * Fixing e2e test and linting * Removing commented code * Updated openapi docs for metadata response * Adding wrapper class * Adding java docs --------- Co-authored-by: Basilio Bogado <[email protected]> Co-authored-by: halprin <[email protected]>
- Loading branch information
1 parent
b368cec
commit 921f82a
Showing
16 changed files
with
166 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/operationoutcomes/FhirMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package gov.hhs.cdc.trustedintermediary.etor.operationoutcomes; | ||
|
||
/** | ||
* Wrapper interface for our public facing metadata. Wraps an operation outcomes object to be | ||
* returned to our ReST API | ||
* | ||
* @param <T> | ||
*/ | ||
public interface FhirMetadata<T> { | ||
|
||
T getUnderlyingOutcome(); | ||
} |
18 changes: 18 additions & 0 deletions
18
...rc/main/java/gov/hhs/cdc/trustedintermediary/etor/operationoutcomes/HapiFhirMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package gov.hhs.cdc.trustedintermediary.etor.operationoutcomes; | ||
|
||
import org.hl7.fhir.r4.model.OperationOutcome; | ||
|
||
/** Implementation of our wrapper for public facing metadata. Returns an operation outcomes */ | ||
public class HapiFhirMetadata implements FhirMetadata<OperationOutcome> { | ||
|
||
private final OperationOutcome innerOutcome; | ||
|
||
public HapiFhirMetadata(OperationOutcome outcome) { | ||
this.innerOutcome = outcome; | ||
} | ||
|
||
@Override | ||
public OperationOutcome getUnderlyingOutcome() { | ||
return innerOutcome; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.