Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
issue-46: setting class extension requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
ALeksander Eskilson committed Apr 19, 2019
1 parent b0b2f67 commit 8650bf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions bunsen-core/src/main/java/com/cerner/bunsen/FhirEncoders.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ public static Builder forVersion(FhirVersionEnum fhirVersion) {
return new Builder(fhirVersion);
}


/**
* Returns an encoder for the given FHIR resource.
*
Expand All @@ -183,7 +182,7 @@ public static Builder forVersion(FhirVersionEnum fhirVersion) {
* @return an encoder for the resource.
*/
public final <T extends IBaseResource> ExpressionEncoder<T> of(Class<T> type,
List<Class> contained) {
List<Class<? extends IBaseResource>> contained) {

BaseRuntimeElementCompositeDefinition definition =
context.getResourceDefinition(type);
Expand Down Expand Up @@ -233,7 +232,7 @@ public final <T extends IBaseResource> ExpressionEncoder<T> of(Class<T> type,
* @return an encoder for the resource.
*/
public final <T extends IBaseResource> ExpressionEncoder<T> of(Class<T> type,
Class... contained) {
Class<? extends IBaseResource>... contained) {

return of(type, Arrays.asList(contained));
}
Expand All @@ -253,7 +252,7 @@ public <T extends IBaseResource> ExpressionEncoder<T> of(String resourceName,

RuntimeResourceDefinition definition = context.getResourceDefinition(resourceName);

List<Class> containedClasses = new ArrayList<>();
List<Class<? extends IBaseResource>> containedClasses = new ArrayList<>();

for (String containedName : contained) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,4 @@ class SchemaConverter(fhirContext: FhirContext, dataTypeMappings: DataTypeMappin
parent
}
}

}
1 change: 0 additions & 1 deletion bunsen-r4/src/test/java/com/cerner/bunsen/r4/TestData.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ public static Patient newPatient() {
return patient;
}


/**
* Returns a FHIR medication to be contained to a medication request for testing purposes.
*/
Expand Down

0 comments on commit 8650bf5

Please sign in to comment.