public class AttachmentUtil extends Object
| Constructor and Description |
|---|
AttachmentUtil() |
| Modifier and Type | Method and Description |
|---|---|
static IPrimitiveType<String> |
getOrCreateContentType(FhirContext theContext,
ICompositeType theAttachment) |
static IPrimitiveType<byte[]> |
getOrCreateData(FhirContext theContext,
ICompositeType theAttachment)
Fetches the base64Binary value of Attachment.data, creating it if it does not
already exist.
|
static IPrimitiveType<String> |
getOrCreateUrl(FhirContext theContext,
ICompositeType theAttachment) |
static void |
setContentType(FhirContext theContext,
ICompositeType theAttachment,
String theContentType) |
static void |
setData(FhirContext theContext,
ICompositeType theAttachment,
byte[] theBytes) |
static void |
setSize(FhirContext theContext,
ICompositeType theAttachment,
Integer theLength) |
public AttachmentUtil()
public static IPrimitiveType<byte[]> getOrCreateData(FhirContext theContext, ICompositeType theAttachment)
public static IPrimitiveType<String> getOrCreateContentType(FhirContext theContext, ICompositeType theAttachment)
public static IPrimitiveType<String> getOrCreateUrl(FhirContext theContext, ICompositeType theAttachment)
public static void setContentType(FhirContext theContext, ICompositeType theAttachment, String theContentType)
public static void setData(FhirContext theContext, ICompositeType theAttachment, byte[] theBytes)
public static void setSize(FhirContext theContext, ICompositeType theAttachment, Integer theLength)
Copyright © 2014–2019 University Health Network. All rights reserved.