Package org.hl7.fhir.r4.model
Class Binary
- java.lang.Object
-
- org.hl7.fhir.r4.model.Base
-
- org.hl7.fhir.r4.model.BaseResource
-
- org.hl7.fhir.r4.model.Resource
-
- org.hl7.fhir.r4.model.BaseBinary
-
- org.hl7.fhir.r4.model.Binary
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseBinary,org.hl7.fhir.instance.model.api.IBaseResource
public class Binary extends BaseBinary implements org.hl7.fhir.instance.model.api.IBaseBinary
A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeTypecontentTypeMimeType of the binary content represented as a standard MimeType (BCP 13).protected Base64BinaryTypedataThe actual content, base64 encoded.protected ReferencesecurityContextThis element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource.protected ResourcesecurityContextTargetThe actual object that is the target of the reference (This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource.-
Fields inherited from class org.hl7.fhir.r4.model.Resource
id, implicitRules, language, meta
-
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r4.model.BaseBinary
getContentAsBase64, setContentAsBase64
-
Methods inherited from class org.hl7.fhir.r4.model.Resource
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.r4.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getUserData, setUserData
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
-
-
-
-
Field Detail
-
contentType
protected CodeType contentType
MimeType of the binary content represented as a standard MimeType (BCP 13).
-
securityContext
protected Reference securityContext
This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource. Given that the Binary resource contains very few elements that can be used to determine the sensitivity of the data and relationships to individuals, the referenced resource stands in as a proxy equivalent for this purpose. This referenced resource may be related to the Binary (e.g. Media, DocumentReference), or may be some non-related Resource purely as a security proxy. E.g. to identify that the binary resource relates to a patient, and access should only be granted to applications that have access to the patient.
-
securityContextTarget
protected Resource securityContextTarget
The actual object that is the target of the reference (This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource. Given that the Binary resource contains very few elements that can be used to determine the sensitivity of the data and relationships to individuals, the referenced resource stands in as a proxy equivalent for this purpose. This referenced resource may be related to the Binary (e.g. Media, DocumentReference), or may be some non-related Resource purely as a security proxy. E.g. to identify that the binary resource relates to a patient, and access should only be granted to applications that have access to the patient.)
-
data
protected Base64BinaryType data
The actual content, base64 encoded.
-
-
Method Detail
-
getContentTypeElement
public CodeType getContentTypeElement()
- Returns:
contentType(MimeType of the binary content represented as a standard MimeType (BCP 13).). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
hasContentTypeElement
public boolean hasContentTypeElement()
-
hasContentType
public boolean hasContentType()
-
setContentTypeElement
public Binary setContentTypeElement(CodeType value)
- Parameters:
value-contentType(MimeType of the binary content represented as a standard MimeType (BCP 13).). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceorg.hl7.fhir.instance.model.api.IBaseBinary- Returns:
- MimeType of the binary content represented as a standard MimeType (BCP 13).
-
setContentType
public Binary setContentType(String value)
- Specified by:
setContentTypein interfaceorg.hl7.fhir.instance.model.api.IBaseBinary- Parameters:
value- MimeType of the binary content represented as a standard MimeType (BCP 13).
-
getSecurityContext
public Reference getSecurityContext()
- Returns:
securityContext(This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource. Given that the Binary resource contains very few elements that can be used to determine the sensitivity of the data and relationships to individuals, the referenced resource stands in as a proxy equivalent for this purpose. This referenced resource may be related to the Binary (e.g. Media, DocumentReference), or may be some non-related Resource purely as a security proxy. E.g. to identify that the binary resource relates to a patient, and access should only be granted to applications that have access to the patient.)
-
hasSecurityContext
public boolean hasSecurityContext()
-
setSecurityContext
public Binary setSecurityContext(Reference value)
- Parameters:
value-securityContext(This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource. Given that the Binary resource contains very few elements that can be used to determine the sensitivity of the data and relationships to individuals, the referenced resource stands in as a proxy equivalent for this purpose. This referenced resource may be related to the Binary (e.g. Media, DocumentReference), or may be some non-related Resource purely as a security proxy. E.g. to identify that the binary resource relates to a patient, and access should only be granted to applications that have access to the patient.)
-
getSecurityContextTarget
public Resource getSecurityContextTarget()
- Returns:
securityContextThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource. Given that the Binary resource contains very few elements that can be used to determine the sensitivity of the data and relationships to individuals, the referenced resource stands in as a proxy equivalent for this purpose. This referenced resource may be related to the Binary (e.g. Media, DocumentReference), or may be some non-related Resource purely as a security proxy. E.g. to identify that the binary resource relates to a patient, and access should only be granted to applications that have access to the patient.)
-
setSecurityContextTarget
public Binary setSecurityContextTarget(Resource value)
- Parameters:
value-securityContextThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource. Given that the Binary resource contains very few elements that can be used to determine the sensitivity of the data and relationships to individuals, the referenced resource stands in as a proxy equivalent for this purpose. This referenced resource may be related to the Binary (e.g. Media, DocumentReference), or may be some non-related Resource purely as a security proxy. E.g. to identify that the binary resource relates to a patient, and access should only be granted to applications that have access to the patient.)
-
getDataElement
public Base64BinaryType getDataElement()
- Returns:
data(The actual content, base64 encoded.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
-
hasDataElement
public boolean hasDataElement()
-
hasData
public boolean hasData()
- Specified by:
hasDatain interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
setDataElement
public Binary setDataElement(Base64BinaryType value)
- Parameters:
value-data(The actual content, base64 encoded.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
-
getData
public byte[] getData()
- Returns:
- The actual content, base64 encoded.
-
setData
public Binary setData(byte[] value)
- Parameters:
value- The actual content, base64 encoded.
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copyValues
public void copyValues(Binary dst)
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classResource
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classResource
-
isEmpty
public boolean isEmpty()
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
getContent
public byte[] getContent()
- Specified by:
getContentin interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
setContent
public org.hl7.fhir.instance.model.api.IBaseBinary setContent(byte[] arg0)
- Specified by:
setContentin interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
getContentElement
public Base64BinaryType getContentElement()
- Specified by:
getContentElementin interfaceorg.hl7.fhir.instance.model.api.IBaseBinary- Specified by:
getContentElementin classBaseBinary
-
-