public final class Message
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Healthcare API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Message() |
Modifier and Type | Method and Description |
---|---|
Message |
clone() |
byte[] |
decodeData()
Required.
|
Message |
encodeData(byte[] data)
Required.
|
String |
getCreateTime()
Output only.
|
String |
getData()
Required.
|
Map<String,String> |
getLabels()
User-supplied key-value pairs used to organize HL7v2 stores.
|
String |
getMessageType()
The message type for this message.
|
String |
getName()
Output only.
|
ParsedData |
getParsedData()
Output only.
|
List<PatientId> |
getPatientIds()
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
|
SchematizedData |
getSchematizedData()
The parsed version of the raw message data schematized according to this store's schemas and
type definitions.
|
String |
getSendFacility()
The hospital that this message came from.
|
String |
getSendTime()
The datetime the sending application sent this message.
|
Message |
set(String fieldName,
Object value) |
Message |
setCreateTime(String createTime)
Output only.
|
Message |
setData(String data)
Required.
|
Message |
setLabels(Map<String,String> labels)
User-supplied key-value pairs used to organize HL7v2 stores.
|
Message |
setMessageType(String messageType)
The message type for this message.
|
Message |
setName(String name)
Output only.
|
Message |
setParsedData(ParsedData parsedData)
Output only.
|
Message |
setPatientIds(List<PatientId> patientIds)
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
|
Message |
setSchematizedData(SchematizedData schematizedData)
The parsed version of the raw message data schematized according to this store's schemas and
type definitions.
|
Message |
setSendFacility(String sendFacility)
The hospital that this message came from.
|
Message |
setSendTime(String sendTime)
The datetime the sending application sent this message.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCreateTime()
null
for nonepublic Message setCreateTime(String createTime)
createTime
- createTime or null
for nonepublic String getData()
null
for nonedecodeData()
public byte[] decodeData()
null
for nonegetData()
public Message setData(String data)
data
- data or null
for none#encodeData()
public Message encodeData(byte[] data)
The value is encoded Base64 or {@code null} for none.
public Map<String,String> getLabels()
null
for nonepublic Message setLabels(Map<String,String> labels)
labels
- labels or null
for nonepublic String getMessageType()
null
for nonepublic Message setMessageType(String messageType)
messageType
- messageType or null
for nonepublic String getName()
null
for nonepublic Message setName(String name)
name
- name or null
for nonepublic ParsedData getParsedData()
null
for nonepublic Message setParsedData(ParsedData parsedData)
parsedData
- parsedData or null
for nonepublic List<PatientId> getPatientIds()
null
for nonepublic Message setPatientIds(List<PatientId> patientIds)
patientIds
- patientIds or null
for nonepublic SchematizedData getSchematizedData()
null
for nonepublic Message setSchematizedData(SchematizedData schematizedData)
schematizedData
- schematizedData or null
for nonepublic String getSendFacility()
null
for nonepublic Message setSendFacility(String sendFacility)
sendFacility
- sendFacility or null
for nonepublic String getSendTime()
null
for nonepublic Message setSendTime(String sendTime)
sendTime
- sendTime or null
for nonepublic Message set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Message clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.