public class ARV extends Segment
The ARV segment is used to communicate the requested/required type of access restrictions from system to system, at both the person/patient and the encounter/visit level
Represents an HL7 ARV message segment. This segment has the following fields:
ARV-1: Set ID (SI)Required
ARV-2: Access Restriction Action Code (CNE)Required
ARV-3: Access Restriction Value (CWE)Required
ARV-4: Access Restriction Reason (CWE)Optional
ARV-5: Special Access Restriction Instructions (ST)Optional
ARV-6: Access Restriction Date Range (DR)Optional
This class provides mechanism to validate message against HL7 v 2.8.2 standard. The class provides accessors & mutators for the elements mentioned above. The class has validate method which validates Message against HL7 v 2.8.2 standard.
User can also create Segment through SegmentFactory
| Constructor and Description |
|---|
ARV()
Constructs the ARV segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessRestrictionReason(CWE objtempAccessRestrictionReason)
Set the Access Restriction Reason.
|
void |
addAccessRestrictionReason(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionId,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameofSecondAlternateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
Set the Access Restriction Reason.
|
void |
addSpecialAccessRestrictionInstructions(ST objtempSpecialAccessRestrictionInstructions)
Set the Special Access Restriction Instructions.
|
void |
addSpecialAccessRestrictionInstructions(java.lang.String strSpecialAccessRestrictionInstructions)
Set the Special Access Restriction Instructions.
|
CNE |
getAccessRestrictionActionCode()
Retrieves the Access Restriction Action Code.
|
DR |
getAccessRestrictionDateRange()
Retrieves the Access Restriction Date Range .
|
ISingleCollection<CWE> |
getAccessRestrictionReason()
Retrieves the Access Restriction Reason.
|
CWE |
getAccessRestrictionValue()
Retrieves the Access Restriction Value.
|
SI |
getSetID()
Retrieves the Set ID.
|
ISingleCollection<ST> |
getSpecialAccessRestrictionInstructions()
Retrieves the Special Access Restriction Instructions.
|
void |
setAccessRestrictionActionCode(CNE objAccessRestrictionActionCode)
Set the Access Restriction Action Code.
|
void |
setAccessRestrictionActionCode(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionID,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameOfSecondAltenateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
Set the Bc Component.
|
void |
setAccessRestrictionDateRange(DR objAccessRestrictionDateRange)
Set the Access Restriction Date Range .
|
void |
setAccessRestrictionDateRange(DTM objRangeStartDateTime,
DTM objRangeEndDateTime)
Set the Access Restriction Date Range .
|
void |
setAccessRestrictionReason(ISingleCollection<CWE> objAccessRestrictionReasonList)
Set the Access Restriction Reason list.
|
void |
setAccessRestrictionValue(CWE objAccessRestrictionValue)
Set the Access Restriction Value.
|
void |
setAccessRestrictionValue(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionId,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameofSecondAlternateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
Set the Access Restriction Value.
|
void |
setSetID(SI objsetID)
Set the Set ID.
|
void |
setSetID(java.lang.String strSetID)
Set the Set ID.
|
void |
setSpecialAccessRestrictionInstructions(ISingleCollection<ST> objSpecialAccessRestrictionInstructions)
Set the Special Access Restriction Instructions.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic SI getSetID()
public CNE getAccessRestrictionActionCode()
public CWE getAccessRestrictionValue()
public ISingleCollection<CWE> getAccessRestrictionReason()
public ISingleCollection<ST> getSpecialAccessRestrictionInstructions()
public DR getAccessRestrictionDateRange()
public void setSetID(java.lang.String strSetID)
strSetID - Use as SetID.public void setSetID(SI objsetID)
objsetID - object of SetID.public void setAccessRestrictionActionCode(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionID,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameOfSecondAltenateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
strIdentifier - Specifies sequence of characters (the code) that uniquely identifies
the item being referenced by the CNE.strText - Specifies descriptive or textual name of the identifier, e.g., myocardial infarctionstrNameOfCodingSystem - Specifies the coding scheme being used in the identifier component.strAlternateIdentifier - Specifies the local or user seen code as described.strAlternateText - Specifies descriptive or textual name of the alternate identifier.strNameOfAlternateCodingSystem - Specifies the coding scheme being used in the alternate identifier
component.strCodingSystemVersionID - Specifies the version ID for the coding system.strAlternateCodingSystemVersionID - Specifies the version ID for the coding system .strOriginalText - Specifies the original text that was available to an automated process or a human
before a specific code was assigned.strSecondAlternateIdentifier - Specifies a sequence of characters that uniquely identifies the second alternate codestrSecondAlternateText - Specifies a the textual information of the second alternate codestrNameOfSecondAltenateCodingSystem - Specifies the second coding scheme being used in the identifier component.strSecondAlternateCodingSystemVersionID - Specifies version ID of Second alternative coding system.strCodingSystemOID - contains the ISO Object identifier for the coding system.strValueSetOID - contains the value set from which CNE-1 is obtainedstrValueSetVersionID - contains the version of the value set identified by CNE-15.strAlternateCodingSystemOID - contains the ISO Object identifier for the alternate coding systemstrAlternateValueSetOID - contains the value set from which CNE-4 is obtainedstrAlternateValueSetVersionID - contains the version of the value set identified by CNE-18.strSecondAlternateCodingSystemOID - contains the value set from which CNE-12 is obtainedstrSecondAlternateValueSetOID - contains the value set from which CNE-10 is obtainedstrSecondAlternateValueSetVersionID - contains the version of the value set identified by CNE-21.public void setAccessRestrictionActionCode(CNE objAccessRestrictionActionCode)
objAccessRestrictionActionCode - object of Bc Component.public void setAccessRestrictionValue(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionId,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameofSecondAlternateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
strIdentifier - Specifies of characters (the code) that uniquely identifies the item being referenced.strText - Specifies The descriptive or textual name of the identifier, e.g., myocardial infarction.strNameOfCodingSystem - Identifies the coding scheme being used in the identifier component.strAlternateIdentifier - Specifies an alternate sequence of characters (the code) that uniquely identifies the item being referenced.strAlternateText - Specifies the descriptive or textual name of the alternate identifier. See usage note in section introduction.strNameOfAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strCodingSystemVersionID - A sequence of characters that uniquely identifies a second alternate code.strAlternateCodingSystemVersionId - This component carries the version for the coding system identified by components 4-6.strOriginalText - The text as seen and/or selected by the user who entered the data.strSecondAlternateIdentifier - A sequence of characters that uniquely identifies a second alternate code.strSecondAlternateText - The descriptive or textual name of the alternate identifier.strNameofSecondAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strSecondAlternateCodingSystemVersionID - This component carries the version for the coding system identified by components 10-12.strCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.3.strValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.1 is obtained.strValueSetVersionID - This component carries the version for the value set identified by CWE.15. The version is a date. The date is the date/time that the value set being used was published.strAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.6.strAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.4 is obtained.strAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.18. The version is a date.strSecondAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.12.strSecondAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.10 is obtained.strSecondAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.21. The version is a date.public void setAccessRestrictionValue(CWE objAccessRestrictionValue)
objAccessRestrictionValue - object of AccessRestrictionValue.public void addAccessRestrictionReason(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionId,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameofSecondAlternateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
strIdentifier - Specifies of characters (the code) that uniquely identifies the item being referenced.strText - Specifies The descriptive or textual name of the identifier, e.g., myocardial infarction.strNameOfCodingSystem - Identifies the coding scheme being used in the identifier component.strAlternateIdentifier - Specifies an alternate sequence of characters (the code) that uniquely identifies the item being referenced.strAlternateText - Specifies the descriptive or textual name of the alternate identifier. See usage note in section introduction.strNameOfAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strCodingSystemVersionID - A sequence of characters that uniquely identifies a second alternate code.strAlternateCodingSystemVersionId - This component carries the version for the coding system identified by components 4-6.strOriginalText - The text as seen and/or selected by the user who entered the data.strSecondAlternateIdentifier - A sequence of characters that uniquely identifies a second alternate code.strSecondAlternateText - The descriptive or textual name of the alternate identifier.strNameofSecondAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strSecondAlternateCodingSystemVersionID - This component carries the version for the coding system identified by components 10-12.strCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.3.strValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.1 is obtained.strValueSetVersionID - This component carries the version for the value set identified by CWE.15. The version is a date. The date is the date/time that the value set being used was published.strAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.6.strAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.4 is obtained.strAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.18. The version is a date.strSecondAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.12.strSecondAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.10 is obtained.strSecondAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.21. The version is a date.public void addAccessRestrictionReason(CWE objtempAccessRestrictionReason)
objtempAccessRestrictionReason - object of AccessRestrictionReason.public void setAccessRestrictionReason(ISingleCollection<CWE> objAccessRestrictionReasonList)
objAccessRestrictionReasonList - List of Access Restriction Reasonpublic void addSpecialAccessRestrictionInstructions(java.lang.String strSpecialAccessRestrictionInstructions)
strSpecialAccessRestrictionInstructions - public void addSpecialAccessRestrictionInstructions(ST objtempSpecialAccessRestrictionInstructions)
objtempSpecialAccessRestrictionInstructions - object indicates Special Access Restriction Instructions.public void setSpecialAccessRestrictionInstructions(ISingleCollection<ST> objSpecialAccessRestrictionInstructions)
objSpecialAccessRestrictionInstructions - List of Special Access Restriction Instructions.public void setAccessRestrictionDateRange(DTM objRangeStartDateTime, DTM objRangeEndDateTime)
objRangeStartDateTime - Specifies the earliest date/time (time stamp) in the
specified range.objRangeEndDateTime - Specifies the latest date/time in the specified range.public void setAccessRestrictionDateRange(DR objAccessRestrictionDateRange)
objAccess - RestrictionDateRange Object of Access Restriction Date Range .public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails.