Package ca.uhn.hl7v2.model.v251.segment
Class RXC
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v251.segment.RXC
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 RXC message segment (Pharmacy/Treatment Component Order). This segment has the following fields:
- RXC-1: RX Component Type (ID)
- RXC-2: Component Code (CE)
- RXC-3: Component Amount (NM)
- RXC-4: Component Units (CE)
- RXC-5: Component Strength (NM) optional
- RXC-6: Component Strength Units (CE) optional
- RXC-7: Supplementary Code (CE) optional repeating
- RXC-8: Component Drug Strength Volume (NM) optional
- RXC-9: Component Drug Strength Volume Units (CWE) optional
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) Returns RXC-3: "Component Amount" - creates it if necessaryReturns RXC-2: "Component Code" - creates it if necessaryReturns RXC-8: "Component Drug Strength Volume" - creates it if necessaryReturns RXC-9: "Component Drug Strength Volume Units" - creates it if necessaryReturns RXC-5: "Component Strength" - creates it if necessaryReturns RXC-6: "Component Strength Units" - creates it if necessaryReturns RXC-4: "Component Units" - creates it if necessaryReturns RXC-1: "RX Component Type" - creates it if necessaryReturns RXC-2: "Component Code" - creates it if necessaryReturns RXC-3: "Component Amount" - creates it if necessaryReturns RXC-4: "Component Units" - creates it if necessaryReturns RXC-5: "Component Strength" - creates it if necessaryReturns RXC-6: "Component Strength Units" - creates it if necessaryCE[]Returns all repetitions of Supplementary Code (RXC-7).getRxc7_SupplementaryCode(int rep) Returns a specific repetition of RXC-7: "Supplementary Code" - creates it if necessaryintReturns a count of the current number of repetitions of Supplementary Code (RXC-7).Returns RXC-8: "Component Drug Strength Volume" - creates it if necessaryReturns RXC-9: "Component Drug Strength Volume Units" - creates it if necessaryReturns RXC-1: "RX Component Type" - creates it if necessaryCE[]Returns all repetitions of Supplementary Code (RXC-7).getSupplementaryCode(int rep) Returns a specific repetition of RXC-7: "Supplementary Code" - creates it if necessaryintReturns a count of the current number of repetitions of Supplementary Code (RXC-7).insertRxc7_SupplementaryCode(int rep) Inserts a repetition of RXC-7: "Supplementary Code" at a specific indexinsertSupplementaryCode(int rep) Inserts a repetition of RXC-7: "Supplementary Code" at a specific indexremoveRxc7_SupplementaryCode(int rep) Removes a repetition of RXC-7: "Supplementary Code" at a specific indexremoveSupplementaryCode(int rep) Removes a repetition of RXC-7: "Supplementary Code" at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods 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
-
RXC
Creates a new RXC segment
-
-
Method Details
-
getRXComponentType
Returns RXC-1: "RX Component Type" - creates it if necessary -
getRxc1_RXComponentType
Returns RXC-1: "RX Component Type" - creates it if necessary -
getComponentCode
Returns RXC-2: "Component Code" - creates it if necessary -
getRxc2_ComponentCode
Returns RXC-2: "Component Code" - creates it if necessary -
getComponentAmount
Returns RXC-3: "Component Amount" - creates it if necessary -
getRxc3_ComponentAmount
Returns RXC-3: "Component Amount" - creates it if necessary -
getComponentUnits
Returns RXC-4: "Component Units" - creates it if necessary -
getRxc4_ComponentUnits
Returns RXC-4: "Component Units" - creates it if necessary -
getComponentStrength
Returns RXC-5: "Component Strength" - creates it if necessary -
getRxc5_ComponentStrength
Returns RXC-5: "Component Strength" - creates it if necessary -
getComponentStrengthUnits
Returns RXC-6: "Component Strength Units" - creates it if necessary -
getRxc6_ComponentStrengthUnits
Returns RXC-6: "Component Strength Units" - creates it if necessary -
getSupplementaryCode
Returns all repetitions of Supplementary Code (RXC-7). -
getRxc7_SupplementaryCode
Returns all repetitions of Supplementary Code (RXC-7). -
getSupplementaryCodeReps
Returns a count of the current number of repetitions of Supplementary Code (RXC-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getSupplementaryCode
Returns a specific repetition of RXC-7: "Supplementary Code" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRxc7_SupplementaryCode
Returns a specific repetition of RXC-7: "Supplementary Code" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getRxc7_SupplementaryCodeReps
Returns a count of the current number of repetitions of Supplementary Code (RXC-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertSupplementaryCode
Inserts a repetition of RXC-7: "Supplementary Code" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertRxc7_SupplementaryCode
Inserts a repetition of RXC-7: "Supplementary Code" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeSupplementaryCode
Removes a repetition of RXC-7: "Supplementary Code" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeRxc7_SupplementaryCode
Removes a repetition of RXC-7: "Supplementary Code" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getComponentDrugStrengthVolume
Returns RXC-8: "Component Drug Strength Volume" - creates it if necessary -
getRxc8_ComponentDrugStrengthVolume
Returns RXC-8: "Component Drug Strength Volume" - creates it if necessary -
getComponentDrugStrengthVolumeUnits
Returns RXC-9: "Component Drug Strength Volume Units" - creates it if necessary -
getRxc9_ComponentDrugStrengthVolumeUnits
Returns RXC-9: "Component Drug Strength Volume Units" - creates it if necessary -
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-