Skip to content

Commit

Permalink
Merge pull request #1005 from CDCgov/story/621/fhirResourceCoverage
Browse files Browse the repository at this point in the history
Made some light refactoring on FhirResource
  • Loading branch information
luis-pabon-tf authored Apr 8, 2024
2 parents 9dfbe9d + db6ae76 commit 470d327
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
* @param <T> The underlying FHIR demographics type.
*/
public interface Demographics<T> extends FhirResource<T> {
String getFhirResourceId();

String getPatientId();
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* receiving applications and facilities, as well as order numbers.
*/
public interface Message<T> extends FhirResource<T> {
String getFhirResourceId();

String getPlacerOrderNumber();

MessageHdDataType getSendingApplicationDetails();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@
*/
public interface FhirResource<T> {
T getUnderlyingResource();

String getFhirResourceId();
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ public HapiFhirResource(IBaseResource innerResource) {
public IBaseResource getUnderlyingResource() {
return innerResource;
}

@Override
public String getFhirResourceId() {
return innerResource.getIdElement().getIdPart();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ class FhirResourceMock<T> implements FhirResource<T> {
}

@Override
public T getUnderlyingResource() {
T getUnderlyingResource() {
return innerResource
}

@Override
String getFhirResourceId() {
return null
}
}

0 comments on commit 470d327

Please sign in to comment.