C
- HAPI composite type which corresponds to the HL7 v2 element.public abstract class Hl7v2Based<C extends ca.uhn.hl7v2.model.Composite> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static ca.uhn.hl7v2.model.Message |
MESSAGE |
Modifier | Constructor and Description |
---|---|
protected |
Hl7v2Based()
Default constructor, for serialization purposes only.
|
protected |
Hl7v2Based(C hapiObject)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
C |
getHapiObject() |
protected static Integer |
getIntegerValue(ca.uhn.hl7v2.model.Primitive p) |
protected static Long |
getLongValue(ca.uhn.hl7v2.model.Primitive p) |
boolean |
isEmpty() |
static <C extends ca.uhn.hl7v2.model.Composite,T extends Hl7v2Based<C>> |
parse(String hl7String,
Class<T> xdsModelClass)
Parses the given HL7 v2 element into an XDS simplified model object.
|
static String |
rawRender(Hl7v2Based xdsModelObject)
Renders the given XDS model object as an HL7 v2 element
without applying IHE TF rules regarding unwanted components.
|
protected String |
render()
Renders this XDS model object using the XDS-specific
HL7 v2 renderer ,
i.e. |
static String |
render(Hl7v2Based xdsModelObject)
Renders the given XDS model object as an HL7 v2 element according to the
XDS specification, i.e.
|
protected static void |
setAssigningAuthority(AssigningAuthority assigningAuthority,
ca.uhn.hl7v2.model.v25.datatype.HD target)
Helper method used for copying data elements of an assigning authority.
|
protected static void |
setValue(ca.uhn.hl7v2.model.Primitive p,
Integer value) |
protected static void |
setValue(ca.uhn.hl7v2.model.Primitive p,
String value) |
protected Hl7v2Based()
protected Hl7v2Based(C hapiObject)
hapiObject
- HAPI composite object.public static <C extends ca.uhn.hl7v2.model.Composite,T extends Hl7v2Based<C>> T parse(String hl7String, Class<T> xdsModelClass)
C
- class of HAPI composite object which should hold the HL7 element.T
- class of XDS model object.hl7String
- HL7 v2 element as a String.xdsModelClass
- class of the XDS model object to be generates.null
when the given
HL7 v2 element is null
or empty.protected String render()
HL7 v2 renderer
,
i.e. with applying IHE TF rules regarding unwanted components.public static String render(Hl7v2Based xdsModelObject)
xdsModelObject
- XDS model object.null
when the given object is null
or empty.public static String rawRender(Hl7v2Based xdsModelObject)
xdsModelObject
- XDS model object.null
or empty.public boolean isEmpty()
true
if this XDS model object does not contain any usable data.public C getHapiObject()
protected static void setValue(ca.uhn.hl7v2.model.Primitive p, String value)
protected static void setValue(ca.uhn.hl7v2.model.Primitive p, Integer value)
protected static Integer getIntegerValue(ca.uhn.hl7v2.model.Primitive p)
protected static Long getLongValue(ca.uhn.hl7v2.model.Primitive p)
protected static void setAssigningAuthority(AssigningAuthority assigningAuthority, ca.uhn.hl7v2.model.v25.datatype.HD target)
assigningAuthority
- source assigning authority.target
- target HL7 v2 HD element.Copyright © 2018 Open eHealth Foundation. All rights reserved.