generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'story/672/marshal-results-into-fhir' into story-672-db_…
…extra_fields
- Loading branch information
Showing
9 changed files
with
45 additions
and
12 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
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