Fix casing in base64Binary type
This commit is contained in:
parent
eee4c75300
commit
68fae08f20
|
@ -35,7 +35,7 @@ import ca.uhn.fhir.model.api.annotation.DatatypeDef;
|
||||||
/**
|
/**
|
||||||
* Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64
|
* Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64
|
||||||
*/
|
*/
|
||||||
@DatatypeDef(name = "base64binary")
|
@DatatypeDef(name = "base64Binary")
|
||||||
public class Base64BinaryType extends PrimitiveType<byte[]> {
|
public class Base64BinaryType extends PrimitiveType<byte[]> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 3L;
|
private static final long serialVersionUID = 3L;
|
||||||
|
|
|
@ -46,7 +46,13 @@ public class ModelDstu3Test {
|
||||||
@Test
|
@Test
|
||||||
public void testSetters() {
|
public void testSetters() {
|
||||||
Claim claim = new Claim();
|
Claim claim = new Claim();
|
||||||
claim.setIdentifier(new ArrayList<Identifier>()).setCareTeam(new ArrayList<CareTeamComponent>());
|
claim.setIdentifier(new ArrayList<>()).setCareTeam(new ArrayList<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testbase64BinaryName() {
|
||||||
|
assertEquals("base64Binary", ourCtx.getElementDefinition("base64binary").getName());
|
||||||
|
assertEquals("base64Binary", ourCtx.getElementDefinition("base64Binary").getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -35,7 +35,7 @@ import ca.uhn.fhir.model.api.annotation.DatatypeDef;
|
||||||
/**
|
/**
|
||||||
* Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64
|
* Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64
|
||||||
*/
|
*/
|
||||||
@DatatypeDef(name="base64binary")
|
@DatatypeDef(name="base64Binary")
|
||||||
public class Base64BinaryType extends PrimitiveType<byte[]> {
|
public class Base64BinaryType extends PrimitiveType<byte[]> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 3L;
|
private static final long serialVersionUID = 3L;
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
package org.hl7.fhir.r4.model;
|
||||||
|
|
||||||
|
import ca.uhn.fhir.context.FhirContext;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
|
public class ModelR4Test {
|
||||||
|
|
||||||
|
private static FhirContext ourCtx = FhirContext.forR4();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testbase64BinaryName() {
|
||||||
|
assertEquals("base64Binary", ourCtx.getElementDefinition("base64binary").getName());
|
||||||
|
assertEquals("base64Binary", ourCtx.getElementDefinition("base64Binary").getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -320,6 +320,10 @@
|
||||||
result in the 10th result being returned). This will now result in an empty
|
result in the 10th result being returned). This will now result in an empty
|
||||||
response Bundle as would be expected.
|
response Bundle as would be expected.
|
||||||
</action>
|
</action>
|
||||||
|
<action type="fix">
|
||||||
|
The casing of the base64Binary datatype was incorrect in the DSTU3 and R4 model classes.
|
||||||
|
This has been corrected.
|
||||||
|
</action>
|
||||||
</release>
|
</release>
|
||||||
<release version="3.6.0" date="2018-11-12" description="Food">
|
<release version="3.6.0" date="2018-11-12" description="Food">
|
||||||
<action type="add">
|
<action type="add">
|
||||||
|
|
Loading…
Reference in New Issue