public class NSC extends Segment
The NSC segment is used to inform (NMR query response) or announce (NMD unsolicited update) the start up, shut down, and/or migration (to a different cpu or file server/file system) of a particular application.
Represents an HL7 NSC message segment. This segment has the following fields:
NSC-1: Application Change Type (CWE)Required
NSC-2: Current CPU (ST)Optional
NSC-3: Current Fileserver (ST)Optional
NSC-4: Current Application (HD)Optional
NSC-5: Current Facility (HD)Optional
NSC-6: New CPU (ST)Optional
NSC-7: New Fileserver (ST)Optional
NSC-8: New Application (HD)Optional
NSC-9: New Facility (HD)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 |
|---|
NSC()
Constructs the NSC segment.
|
| Modifier and Type | Method and Description |
|---|---|
CWE |
getApplicationChangeType()
Retrieves the Application Change Type.
|
HD |
getCurrentApplication()
Retrieves the Current Application.
|
ST |
getCurrentCPU()
Retrieves the Current CPU.
|
HD |
getCurrentFacility()
Retrieves the Current Facility.
|
ST |
getCurrentFileserver()
Retrieves the Current Fileserver.
|
HD |
getNewApplication()
Retrieves the New Application.
|
ST |
getNewCPU()
Retrieves the New CPU.
|
HD |
getNewFacility()
Retrieves the New Facility.
|
ST |
getNewFileserver()
Retrieves the New Fileserver.
|
void |
setApplicationChangeType(CWE objapplicationChangeType)
Set the Application Change Type.
|
void |
setApplicationChangeType(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)
IS
Set the Application Change Type.
|
void |
setCurrentApplication(HD objcurrentApplication)
Set the Current Application.
|
void |
setCurrentApplication(java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
Set the Current Application.
|
void |
setCurrentCPU(ST objcurrentCPU)
Set the Current CPU.
|
void |
setCurrentCPU(java.lang.String strCurrentCPU)
Set the Current CPU.
|
void |
setCurrentFacility(HD objcurrentFacility)
Set the Current Facility.
|
void |
setCurrentFacility(java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
Set the Current Facility.
|
void |
setCurrentFileserver(ST objcurrentFileserver)
Set the Current Fileserver.
|
void |
setCurrentFileserver(java.lang.String strCurrentFileserver)
Set the Current Fileserver.
|
void |
setNewApplication(HD objnewApplication)
Set the New Application.
|
void |
setNewApplication(java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
Set the New Application.
|
void |
setNewCPU(ST objnewCPU)
Set the New CPU.
|
void |
setNewCPU(java.lang.String strNewCPU)
Set the New CPU.
|
void |
setNewFacility(HD objnewFacility)
Set the New Facility.
|
void |
setNewFacility(java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
Set the New Facility.
|
void |
setNewFileserver(ST objnewFileserver)
Set the New Fileserver.
|
void |
setNewFileserver(java.lang.String strNewFileserver)
Set the New Fileserver.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic CWE getApplicationChangeType()
public void setApplicationChangeType(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 setApplicationChangeType(CWE objapplicationChangeType)
objapplicationChangeType - value of ApplicationChangeTypepublic HD getCurrentApplication()
public void setCurrentApplication(java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
strNamespaceID - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalID - Specifies a string formatted according to the scheme defined by the component, strUniversalIDType - Governs the interpretation of the strUniversalId.public void setCurrentApplication(HD objcurrentApplication)
objcurrentApplication - Current Applicationpublic ST getCurrentCPU()
public void setCurrentCPU(java.lang.String strCurrentCPU)
strCurrentCPU - The name of the party.public void setCurrentCPU(ST objcurrentCPU)
objcurrentCPU - The name of the party.public HD getCurrentFacility()
public void setCurrentFacility(java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
strNamespaceID - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalID - Specifies a string formatted according to the scheme defined by the component, strUniversalIDType - Governs the interpretation of the strUniversalId.public void setCurrentFacility(HD objcurrentFacility)
objcurrentFacility - Current Facilitypublic ST getCurrentFileserver()
public void setCurrentFileserver(java.lang.String strCurrentFileserver)
strCurrentFileserver - The name of the party.public void setCurrentFileserver(ST objcurrentFileserver)
objcurrentFileserver - The name of the party.public HD getNewApplication()
public void setNewApplication(java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
strNamespaceID - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalID - Specifies a string formatted according to the scheme defined by the component, strUniversalIDType - Governs the interpretation of the strUniversalId.public void setNewApplication(HD objnewApplication)
objnewApplication - New Applicationpublic ST getNewCPU()
public void setNewCPU(java.lang.String strNewCPU)
strNewCPU - The name of the party.public void setNewCPU(ST objnewCPU)
objnewCPU - The name of the party.public HD getNewFacility()
public void setNewFacility(java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
strNamespaceID - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalID - Specifies a string formatted according to the scheme defined by the component, strUniversalIDType - Governs the interpretation of the strUniversalId.public void setNewFacility(HD objnewFacility)
objnewFacility - New Facilitypublic ST getNewFileserver()
public void setNewFileserver(java.lang.String strNewFileserver)
strNewFileserver - The name of the party.public void setNewFileserver(ST objnewFileserver)
objnewFileserver - The name of the party.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails