Package ca.uhn.hl7v2.model.v23.group
Class SUR_P09_FACILITY
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractGroup
ca.uhn.hl7v2.model.v23.group.SUR_P09_FACILITY
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a SUR_P09_FACILITY 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: FAC (Facility)
- 2: SUR_P09_PRODUCT (a Group object) repeating
- 3: PSH (Product Summary Header)
- 4: SUR_P09_FACILITY_DETAIL (a Group object) repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionSUR_P09_FACILITY(Group parent, ModelClassFactory factory) Creates a new SUR_P09_FACILITY group -
Method Summary
Modifier and TypeMethodDescriptiongetFAC()Returns FAC (Facility) - creates it if necessaryReturns the first repetition of FACILITY_DETAIL (a Group object) - creates it if necessarygetFACILITY_DETAIL(int rep) Returns a specific repetition of FACILITY_DETAIL (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of FACILITY_DETAIL.intReturns the number of existing repetitions of FACILITY_DETAILReturns the first repetition of PRODUCT (a Group object) - creates it if necessarygetPRODUCT(int rep) Returns a specific repetition of PRODUCT (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of PRODUCT.intReturns the number of existing repetitions of PRODUCTgetPSH()Returns PSH (Product Summary Header) - creates it if necessaryReturns "2.3"insertFACILITY_DETAIL(int rep) Inserts a specific repetition of FACILITY_DETAIL (a Group object)voidinsertFACILITY_DETAIL(SUR_P09_FACILITY_DETAIL structure, int rep) Inserts a specific repetition of FACILITY_DETAIL (a Group object)insertPRODUCT(int rep) Inserts a specific repetition of PRODUCT (a Group object)voidinsertPRODUCT(SUR_P09_PRODUCT structure, int rep) Inserts a specific repetition of PRODUCT (a Group object)removeFACILITY_DETAIL(int rep) Removes a specific repetition of FACILITY_DETAIL (a Group object)removePRODUCT(int rep) Removes a specific repetition of PRODUCT (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
-
SUR_P09_FACILITY
Creates a new SUR_P09_FACILITY group
-
-
Method Details
-
getVersion
Returns "2.3" -
getFAC
Returns FAC (Facility) - creates it if necessary -
getPRODUCT
Returns the first repetition of PRODUCT (a Group object) - creates it if necessary -
getPRODUCT
Returns a specific repetition of PRODUCT (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.
-
getPRODUCTReps
Returns the number of existing repetitions of PRODUCT -
getPRODUCTAll
Returns a non-modifiable List containing all current existing repetitions of PRODUCT.
Note that unlike
getPRODUCT(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertPRODUCT
Inserts a specific repetition of PRODUCT (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertPRODUCT
Inserts a specific repetition of PRODUCT (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removePRODUCT
Removes a specific repetition of PRODUCT (a Group object)- Throws:
HL7Exception- See Also:
-
getPSH
Returns PSH (Product Summary Header) - creates it if necessary -
getFACILITY_DETAIL
Returns the first repetition of FACILITY_DETAIL (a Group object) - creates it if necessary -
getFACILITY_DETAIL
Returns a specific repetition of FACILITY_DETAIL (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.
-
getFACILITY_DETAILReps
Returns the number of existing repetitions of FACILITY_DETAIL -
getFACILITY_DETAILAll
Returns a non-modifiable List containing all current existing repetitions of FACILITY_DETAIL.
Note that unlike
getFACILITY_DETAIL(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertFACILITY_DETAIL
Inserts a specific repetition of FACILITY_DETAIL (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertFACILITY_DETAIL
Inserts a specific repetition of FACILITY_DETAIL (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeFACILITY_DETAIL
Removes a specific repetition of FACILITY_DETAIL (a Group object)- Throws:
HL7Exception- See Also:
-