Package org.projecthusky.common.model
Class Reference
java.lang.Object
org.projecthusky.common.model.Reference
The class Reference contains all necessary fields for an HL7 CDA R2 reference. This class also provides mapping
methods to other data types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ED
createHl7CdaR2Ed
(Reference baseType) Creates the HL7 CDA R2 data type from the given base type.static ED
createReference
(int contentId, String prefix) Creates the reference.static ED
createReference
(String reference) Creates an ED reference from a given String.static ED
createReference
(String url, String narrativeText) Creates an ED reference from a given String.static ED
createReference
(ED existingText, String reference) Creates an MDHT ED reference from a given String.static TEL
createReferenceTel
(String value) Creates the reference tel.static Reference
createReferenceType
(ED hl7CdaR2Value) Creates from the given HL7 CDA R2 value.Gets the HL7 CDA R2 data type from the current instance.getValue()
void
Sets the fields of the current instance by the given HL7 CDA R2 data type.void
Sets the fields of the current instance by the given base type.void
setNarrativeText
(List<String> narrativeText) void
setNullFlavor
(NullFlavor nullFlavor) void
-
Constructor Details
-
Reference
public Reference()Instantiates a new identificator. Default constructor. -
Reference
Instantiates a new instance from the given base type.- Parameters:
value
-narrativeText
-
-
Reference
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
-
Method Details
-
createReferenceType
Creates from the given HL7 CDA R2 value.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 value- Returns:
- the reference type
-
createHl7CdaR2Ed
Creates the HL7 CDA R2 data type from the given base type.- Parameters:
baseType
- the base type- Returns:
- the HL7 CDA R2 data typed value
-
createReference
Creates an MDHT ED reference from a given String. Adds the hashtag '#' automatically, if not present as first character.- Parameters:
existingText
- the existing textreference
- the reference- Returns:
- the MDHT ED
-
createReference
Creates the reference.- Parameters:
contentId
-
content idprefix
-
prefix- Returns:
- the ed
-
createReference
Creates an ED reference from a given String. Adds the hashtag '#' automatically, if not present as first character.- Parameters:
reference
- the reference value- Returns:
- the ED
-
createReference
Creates an ED reference from a given String.- Parameters:
url
- the reference urlnarrativeText
- the reference narrative text- Returns:
- the ED
-
createReferenceTel
Creates the reference tel.- Parameters:
value
- the value- Returns:
- the tel
-
getHl7CdaR2Ed
Gets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
-
set
Sets the fields of the current instance by the given base type.- Parameters:
baseType
- the base type
-
set
Sets the fields of the current instance by the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data typed value
-
getNullFlavor
-
setNullFlavor
-
getValue
-
setValue
-
getNarrativeText
-
setNarrativeText
-