public class Binary extends BaseResource implements ca.uhn.fhir.model.api.IResource, org.hl7.fhir.instance.model.api.IBaseBinary
Definition: A binary resource can contain any content, whether text, image, pdf, zip archive, etc.
Requirements: There are situations where it is useful or required to handle pure binary content using the same framework as other resources
Profile Definition: http://hl7.org/fhir/profiles/Binary
| Modifier and Type | Field and Description |
|---|---|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
CONTENTTYPE
Fluent Client search parameter constant for contenttype
|
static String |
SP_CONTENTTYPE
Search parameter constant for contenttype
|
RES_ID, SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
Binary() |
| Modifier and Type | Method and Description |
|---|---|
<T extends ca.uhn.fhir.model.api.IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
byte[] |
getContent()
Gets the value(s) for content ().
|
String |
getContentAsBase64() |
ca.uhn.fhir.model.primitive.Base64BinaryDt |
getContentElement()
Gets the value(s) for content ().
|
String |
getContentType()
Gets the value(s) for contentType ().
|
ca.uhn.fhir.model.primitive.CodeDt |
getContentTypeElement()
Gets the value(s) for contentType ().
|
String |
getResourceName() |
ca.uhn.fhir.context.FhirVersionEnum |
getStructureFhirVersionEnum() |
boolean |
isEmpty() |
Binary |
setContent(ca.uhn.fhir.model.primitive.Base64BinaryDt theValue)
Sets the value(s) for content ()
|
Binary |
setContent(byte[] theBytes)
Sets the value for content ()
|
Binary |
setContentAsBase64(String theContent) |
Binary |
setContentType(ca.uhn.fhir.model.primitive.CodeDt theValue)
Sets the value(s) for contentType ()
|
Binary |
setContentType(String theCode)
Sets the value for contentType ()
|
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatCommentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String SP_CONTENTTYPE
Description:
Type: token
Path: Binary.contentType
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTENTTYPE
Description:
Type: token
Path: Binary.contentType
public Binary()
public boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBasepublic <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElementpublic ca.uhn.fhir.model.primitive.CodeDt getContentTypeElement()
null.
Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
public String getContentType()
null.
Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
getContentType in interface org.hl7.fhir.instance.model.api.IBaseBinarypublic Binary setContentType(ca.uhn.fhir.model.primitive.CodeDt theValue)
Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
public Binary setContentType(String theCode)
Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
setContentType in interface org.hl7.fhir.instance.model.api.IBaseBinarypublic ca.uhn.fhir.model.primitive.Base64BinaryDt getContentElement()
null.
Definition: The actual content, base64 encoded
public byte[] getContent()
null.
Definition: The actual content, base64 encoded
getContent in interface org.hl7.fhir.instance.model.api.IBaseBinarypublic Binary setContent(ca.uhn.fhir.model.primitive.Base64BinaryDt theValue)
Definition: The actual content, base64 encoded
public Binary setContent(byte[] theBytes)
Definition: The actual content, base64 encoded
setContent in interface org.hl7.fhir.instance.model.api.IBaseBinarypublic String getResourceName()
getResourceName in interface ca.uhn.fhir.model.api.IResourcepublic ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResourcegetStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResourcepublic String getContentAsBase64()
getContentAsBase64 in interface org.hl7.fhir.instance.model.api.IBaseBinarypublic Binary setContentAsBase64(String theContent)
setContentAsBase64 in interface org.hl7.fhir.instance.model.api.IBaseBinaryCopyright © 2014–2018 University Health Network. All rights reserved.