Class SRM_S01_RESOURCES
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a SRM_S01_RESOURCES group structure (a Group object). A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together. This Group contains the following elements:
- 1: RGS (Resource Group)
- 2: SRM_S01_SERVICE (a Group object) optional repeating
- 3: SRM_S01_GENERAL_RESOURCE (a Group object) optional repeating
- 4: SRM_S01_LOCATION_RESOURCE (a Group object) optional repeating
- 5: SRM_S01_PERSONNEL_RESOURCE (a Group object) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionSRM_S01_RESOURCES(Group parent, ModelClassFactory factory) Creates a new SRM_S01_RESOURCES group -
Method Summary
Modifier and TypeMethodDescriptionReturns the first repetition of GENERAL_RESOURCE (a Group object) - creates it if necessarygetGENERAL_RESOURCE(int rep) Returns a specific repetition of GENERAL_RESOURCE (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of GENERAL_RESOURCE.intReturns the number of existing repetitions of GENERAL_RESOURCEReturns the first repetition of LOCATION_RESOURCE (a Group object) - creates it if necessarygetLOCATION_RESOURCE(int rep) Returns a specific repetition of LOCATION_RESOURCE (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of LOCATION_RESOURCE.intReturns the number of existing repetitions of LOCATION_RESOURCEReturns the first repetition of PERSONNEL_RESOURCE (a Group object) - creates it if necessarygetPERSONNEL_RESOURCE(int rep) Returns a specific repetition of PERSONNEL_RESOURCE (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of PERSONNEL_RESOURCE.intReturns the number of existing repetitions of PERSONNEL_RESOURCEgetRGS()Returns RGS (Resource Group) - creates it if necessaryReturns the first repetition of SERVICE (a Group object) - creates it if necessarygetSERVICE(int rep) Returns a specific repetition of SERVICE (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of SERVICE.intReturns the number of existing repetitions of SERVICEReturns "2.4"insertGENERAL_RESOURCE(int rep) Inserts a specific repetition of GENERAL_RESOURCE (a Group object)voidinsertGENERAL_RESOURCE(SRM_S01_GENERAL_RESOURCE structure, int rep) Inserts a specific repetition of GENERAL_RESOURCE (a Group object)insertLOCATION_RESOURCE(int rep) Inserts a specific repetition of LOCATION_RESOURCE (a Group object)voidinsertLOCATION_RESOURCE(SRM_S01_LOCATION_RESOURCE structure, int rep) Inserts a specific repetition of LOCATION_RESOURCE (a Group object)insertPERSONNEL_RESOURCE(int rep) Inserts a specific repetition of PERSONNEL_RESOURCE (a Group object)voidinsertPERSONNEL_RESOURCE(SRM_S01_PERSONNEL_RESOURCE structure, int rep) Inserts a specific repetition of PERSONNEL_RESOURCE (a Group object)insertSERVICE(int rep) Inserts a specific repetition of SERVICE (a Group object)voidinsertSERVICE(SRM_S01_SERVICE structure, int rep) Inserts a specific repetition of SERVICE (a Group object)removeGENERAL_RESOURCE(int rep) Removes a specific repetition of GENERAL_RESOURCE (a Group object)removeLOCATION_RESOURCE(int rep) Removes a specific repetition of LOCATION_RESOURCE (a Group object)removePERSONNEL_RESOURCE(int rep) Removes a specific repetition of PERSONNEL_RESOURCE (a Group object)removeSERVICE(int rep) Removes a specific repetition of SERVICE (a Group object)Methods inherited from class ca.uhn.hl7v2.model.AbstractGroup
accept, add, add, add, addNonstandardSegment, addNonstandardSegment, clear, currentReps, get, get, getAll, getAllAsList, getClass, getFieldNumForName, getModelClassFactory, getName, getNames, getNonStandardNames, getReps, getTyped, getTyped, insert, insert, insertRepetition, insertRepetition, isChoiceElement, isEmpty, isGroup, isRepeating, isRequired, provideLocation, removeRepetition, tryToInstantiateStructure, visitNestedStructuresMethods inherited from class ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
SRM_S01_RESOURCES
Creates a new SRM_S01_RESOURCES group
-
-
Method Details
-
getVersion
Returns "2.4" -
getRGS
Returns RGS (Resource Group) - creates it if necessary -
getSERVICE
Returns the first repetition of SERVICE (a Group object) - creates it if necessary -
getSERVICE
Returns a specific repetition of SERVICE (a Group object) - creates it if necessary- Parameters:
rep- The repetition index (0-indexed, i.e. the first repetition is at index 0)- Throws:
HL7Exception- if the repetition requested is more than one greater than the number of existing repetitions.
-
getSERVICEReps
Returns the number of existing repetitions of SERVICE -
getSERVICEAll
Returns a non-modifiable List containing all current existing repetitions of SERVICE.
Note that unlike
getSERVICE(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertSERVICE
Inserts a specific repetition of SERVICE (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertSERVICE
Inserts a specific repetition of SERVICE (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeSERVICE
Removes a specific repetition of SERVICE (a Group object)- Throws:
HL7Exception- See Also:
-
getGENERAL_RESOURCE
Returns the first repetition of GENERAL_RESOURCE (a Group object) - creates it if necessary -
getGENERAL_RESOURCE
Returns a specific repetition of GENERAL_RESOURCE (a Group object) - creates it if necessary- Parameters:
rep- The repetition index (0-indexed, i.e. the first repetition is at index 0)- Throws:
HL7Exception- if the repetition requested is more than one greater than the number of existing repetitions.
-
getGENERAL_RESOURCEReps
Returns the number of existing repetitions of GENERAL_RESOURCE -
getGENERAL_RESOURCEAll
Returns a non-modifiable List containing all current existing repetitions of GENERAL_RESOURCE.
Note that unlike
getGENERAL_RESOURCE(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertGENERAL_RESOURCE
Inserts a specific repetition of GENERAL_RESOURCE (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertGENERAL_RESOURCE
Inserts a specific repetition of GENERAL_RESOURCE (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeGENERAL_RESOURCE
Removes a specific repetition of GENERAL_RESOURCE (a Group object)- Throws:
HL7Exception- See Also:
-
getLOCATION_RESOURCE
Returns the first repetition of LOCATION_RESOURCE (a Group object) - creates it if necessary -
getLOCATION_RESOURCE
Returns a specific repetition of LOCATION_RESOURCE (a Group object) - creates it if necessary- Parameters:
rep- The repetition index (0-indexed, i.e. the first repetition is at index 0)- Throws:
HL7Exception- if the repetition requested is more than one greater than the number of existing repetitions.
-
getLOCATION_RESOURCEReps
Returns the number of existing repetitions of LOCATION_RESOURCE -
getLOCATION_RESOURCEAll
Returns a non-modifiable List containing all current existing repetitions of LOCATION_RESOURCE.
Note that unlike
getLOCATION_RESOURCE(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertLOCATION_RESOURCE
public void insertLOCATION_RESOURCE(SRM_S01_LOCATION_RESOURCE structure, int rep) throws HL7Exception Inserts a specific repetition of LOCATION_RESOURCE (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertLOCATION_RESOURCE
Inserts a specific repetition of LOCATION_RESOURCE (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeLOCATION_RESOURCE
Removes a specific repetition of LOCATION_RESOURCE (a Group object)- Throws:
HL7Exception- See Also:
-
getPERSONNEL_RESOURCE
Returns the first repetition of PERSONNEL_RESOURCE (a Group object) - creates it if necessary -
getPERSONNEL_RESOURCE
Returns a specific repetition of PERSONNEL_RESOURCE (a Group object) - creates it if necessary- Parameters:
rep- The repetition index (0-indexed, i.e. the first repetition is at index 0)- Throws:
HL7Exception- if the repetition requested is more than one greater than the number of existing repetitions.
-
getPERSONNEL_RESOURCEReps
Returns the number of existing repetitions of PERSONNEL_RESOURCE -
getPERSONNEL_RESOURCEAll
Returns a non-modifiable List containing all current existing repetitions of PERSONNEL_RESOURCE.
Note that unlike
getPERSONNEL_RESOURCE(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertPERSONNEL_RESOURCE
public void insertPERSONNEL_RESOURCE(SRM_S01_PERSONNEL_RESOURCE structure, int rep) throws HL7Exception Inserts a specific repetition of PERSONNEL_RESOURCE (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertPERSONNEL_RESOURCE
Inserts a specific repetition of PERSONNEL_RESOURCE (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removePERSONNEL_RESOURCE
Removes a specific repetition of PERSONNEL_RESOURCE (a Group object)- Throws:
HL7Exception- See Also:
-