ca.uhn.hl7v2.model.v28.segment.OM7 Maven / Gradle / Ivy
/*
* This class is an auto-generated source file for a HAPI
* HL7 v2.x standard structure class.
*
* For more information, visit: http://hl7api.sourceforge.net/
*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.mozilla.org/MPL/
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
* specific language governing rights and limitations under the License.
*
* The Original Code is "[file_name]". Description:
* "[one_line_description]"
*
* The Initial Developer of the Original Code is University Health Network. Copyright (C)
* 2012. All Rights Reserved.
*
* Contributor(s): ______________________________________.
*
* Alternatively, the contents of this file may be used under the terms of the
* GNU General Public License (the "GPL"), in which case the provisions of the GPL are
* applicable instead of those above. If you wish to allow use of your version of this
* file only under the terms of the GPL and not to allow others to use your version
* of this file under the MPL, indicate your decision by deleting the provisions above
* and replace them with the notice and other provisions required by the GPL License.
* If you do not delete the provisions above, a recipient may use your version of
* this file under either the MPL or the GPL.
*
*/
package ca.uhn.hl7v2.model.v28.segment;
// import ca.uhn.hl7v2.model.v28.group.*;
import ca.uhn.hl7v2.model.v28.datatype.*;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;
/**
*Represents an HL7 OM7 message segment (Additional Basic Attributes).
* This segment has the following fields:
*
* - OM7-1: Sequence Number - Test/Observation Master File (NM)
*
- OM7-2: Universal Service Identifier (CWE)
*
- OM7-3: Category Identifier (CWE) optional repeating
*
- OM7-4: Category Description (TX) optional
*
- OM7-5: Category Synonym (ST) optional repeating
*
- OM7-6: Effective Test/Service Start Date/Time (DTM) optional
*
- OM7-7: Effective Test/Service End Date/Time (DTM) optional
*
- OM7-8: Test/Service Default Duration Quantity (NM) optional
*
- OM7-9: Test/Service Default Duration Units (CWE) optional
*
- OM7-10: Test/Service Default Frequency (CWE) optional
*
- OM7-11: Consent Indicator (ID) optional
*
- OM7-12: Consent Identifier (CWE) optional
*
- OM7-13: Consent Effective Start Date/Time (DTM) optional
*
- OM7-14: Consent Effective End Date/Time (DTM) optional
*
- OM7-15: Consent Interval Quantity (NM) optional
*
- OM7-16: Consent Interval Units (CWE) optional
*
- OM7-17: Consent Waiting Period Quantity (NM) optional
*
- OM7-18: Consent Waiting Period Units (CWE) optional
*
- OM7-19: Effective Date/Time of Change (DTM) optional
*
- OM7-20: Entered By (XCN) optional
*
- OM7-21: Orderable-at Location (PL) optional repeating
*
- OM7-22: Formulary Status (CWE) optional
*
- OM7-23: Special Order Indicator (ID) optional
*
- OM7-24: Primary Key Value - CDM (CWE) optional repeating
*
*/
@SuppressWarnings("unused")
public class OM7 extends AbstractSegment {
/**
* Creates a new OM7 segment
*/
public OM7(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(NM.class, true, 1, 0, new Object[]{ getMessage() }, "Sequence Number - Test/Observation Master File");
this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Universal Service Identifier");
this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Category Identifier");
this.add(TX.class, false, 1, 0, new Object[]{ getMessage() }, "Category Description");
this.add(ST.class, false, 0, 0, new Object[]{ getMessage() }, "Category Synonym");
this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Test/Service Start Date/Time");
this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Test/Service End Date/Time");
this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Test/Service Default Duration Quantity");
this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Test/Service Default Duration Units");
this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Test/Service Default Frequency");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Consent Indicator");
this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Identifier");
this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Effective Start Date/Time");
this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Effective End Date/Time");
this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Interval Quantity");
this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Interval Units");
this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Waiting Period Quantity");
this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Waiting Period Units");
this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Date/Time of Change");
this.add(XCN.class, false, 1, 0, new Object[]{ getMessage() }, "Entered By");
this.add(PL.class, false, 0, 0, new Object[]{ getMessage() }, "Orderable-at Location");
this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Formulary Status");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Special Order Indicator");
this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Primary Key Value - CDM");
} catch(HL7Exception e) {
log.error("Unexpected error creating OM7 - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* OM7-1: "Sequence Number - Test/Observation Master File" - creates it if necessary
*/
public NM getSequenceNumberTestObservationMasterFile() {
NM retVal = this.getTypedField(1, 0);
return retVal;
}
/**
* Returns
* OM7-1: "Sequence Number - Test/Observation Master File" - creates it if necessary
*/
public NM getOm71_SequenceNumberTestObservationMasterFile() {
NM retVal = this.getTypedField(1, 0);
return retVal;
}
/**
* Returns
* OM7-2: "Universal Service Identifier" - creates it if necessary
*/
public CWE getUniversalServiceIdentifier() {
CWE retVal = this.getTypedField(2, 0);
return retVal;
}
/**
* Returns
* OM7-2: "Universal Service Identifier" - creates it if necessary
*/
public CWE getOm72_UniversalServiceIdentifier() {
CWE retVal = this.getTypedField(2, 0);
return retVal;
}
/**
* Returns all repetitions of Category Identifier (OM7-3).
*/
public CWE[] getCategoryIdentifier() {
CWE[] retVal = this.getTypedField(3, new CWE[0]);
return retVal;
}
/**
* Returns all repetitions of Category Identifier (OM7-3).
*/
public CWE[] getOm73_CategoryIdentifier() {
CWE[] retVal = this.getTypedField(3, new CWE[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Category Identifier (OM7-3).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getCategoryIdentifierReps() {
return this.getReps(3);
}
/**
* Returns a specific repetition of
* OM7-3: "Category Identifier" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getCategoryIdentifier(int rep) {
CWE retVal = this.getTypedField(3, rep);
return retVal;
}
/**
* Returns a specific repetition of
* OM7-3: "Category Identifier" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getOm73_CategoryIdentifier(int rep) {
CWE retVal = this.getTypedField(3, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Category Identifier (OM7-3).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOm73_CategoryIdentifierReps() {
return this.getReps(3);
}
/**
* Inserts a repetition of
* OM7-3: "Category Identifier" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertCategoryIdentifier(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(3, rep);
}
/**
* Inserts a repetition of
* OM7-3: "Category Identifier" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertOm73_CategoryIdentifier(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(3, rep);
}
/**
* Removes a repetition of
* OM7-3: "Category Identifier" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeCategoryIdentifier(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(3, rep);
}
/**
* Removes a repetition of
* OM7-3: "Category Identifier" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeOm73_CategoryIdentifier(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(3, rep);
}
/**
* Returns
* OM7-4: "Category Description" - creates it if necessary
*/
public TX getCategoryDescription() {
TX retVal = this.getTypedField(4, 0);
return retVal;
}
/**
* Returns
* OM7-4: "Category Description" - creates it if necessary
*/
public TX getOm74_CategoryDescription() {
TX retVal = this.getTypedField(4, 0);
return retVal;
}
/**
* Returns all repetitions of Category Synonym (OM7-5).
*/
public ST[] getCategorySynonym() {
ST[] retVal = this.getTypedField(5, new ST[0]);
return retVal;
}
/**
* Returns all repetitions of Category Synonym (OM7-5).
*/
public ST[] getOm75_CategorySynonym() {
ST[] retVal = this.getTypedField(5, new ST[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Category Synonym (OM7-5).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getCategorySynonymReps() {
return this.getReps(5);
}
/**
* Returns a specific repetition of
* OM7-5: "Category Synonym" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ST getCategorySynonym(int rep) {
ST retVal = this.getTypedField(5, rep);
return retVal;
}
/**
* Returns a specific repetition of
* OM7-5: "Category Synonym" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ST getOm75_CategorySynonym(int rep) {
ST retVal = this.getTypedField(5, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Category Synonym (OM7-5).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOm75_CategorySynonymReps() {
return this.getReps(5);
}
/**
* Inserts a repetition of
* OM7-5: "Category Synonym" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ST insertCategorySynonym(int rep) throws HL7Exception {
return (ST) super.insertRepetition(5, rep);
}
/**
* Inserts a repetition of
* OM7-5: "Category Synonym" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ST insertOm75_CategorySynonym(int rep) throws HL7Exception {
return (ST) super.insertRepetition(5, rep);
}
/**
* Removes a repetition of
* OM7-5: "Category Synonym" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ST removeCategorySynonym(int rep) throws HL7Exception {
return (ST) super.removeRepetition(5, rep);
}
/**
* Removes a repetition of
* OM7-5: "Category Synonym" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ST removeOm75_CategorySynonym(int rep) throws HL7Exception {
return (ST) super.removeRepetition(5, rep);
}
/**
* Returns
* OM7-6: "Effective Test/Service Start Date/Time" - creates it if necessary
*/
public DTM getEffectiveTestServiceStartDateTime() {
DTM retVal = this.getTypedField(6, 0);
return retVal;
}
/**
* Returns
* OM7-6: "Effective Test/Service Start Date/Time" - creates it if necessary
*/
public DTM getOm76_EffectiveTestServiceStartDateTime() {
DTM retVal = this.getTypedField(6, 0);
return retVal;
}
/**
* Returns
* OM7-7: "Effective Test/Service End Date/Time" - creates it if necessary
*/
public DTM getEffectiveTestServiceEndDateTime() {
DTM retVal = this.getTypedField(7, 0);
return retVal;
}
/**
* Returns
* OM7-7: "Effective Test/Service End Date/Time" - creates it if necessary
*/
public DTM getOm77_EffectiveTestServiceEndDateTime() {
DTM retVal = this.getTypedField(7, 0);
return retVal;
}
/**
* Returns
* OM7-8: "Test/Service Default Duration Quantity" - creates it if necessary
*/
public NM getTestServiceDefaultDurationQuantity() {
NM retVal = this.getTypedField(8, 0);
return retVal;
}
/**
* Returns
* OM7-8: "Test/Service Default Duration Quantity" - creates it if necessary
*/
public NM getOm78_TestServiceDefaultDurationQuantity() {
NM retVal = this.getTypedField(8, 0);
return retVal;
}
/**
* Returns
* OM7-9: "Test/Service Default Duration Units" - creates it if necessary
*/
public CWE getTestServiceDefaultDurationUnits() {
CWE retVal = this.getTypedField(9, 0);
return retVal;
}
/**
* Returns
* OM7-9: "Test/Service Default Duration Units" - creates it if necessary
*/
public CWE getOm79_TestServiceDefaultDurationUnits() {
CWE retVal = this.getTypedField(9, 0);
return retVal;
}
/**
* Returns
* OM7-10: "Test/Service Default Frequency" - creates it if necessary
*/
public CWE getTestServiceDefaultFrequency() {
CWE retVal = this.getTypedField(10, 0);
return retVal;
}
/**
* Returns
* OM7-10: "Test/Service Default Frequency" - creates it if necessary
*/
public CWE getOm710_TestServiceDefaultFrequency() {
CWE retVal = this.getTypedField(10, 0);
return retVal;
}
/**
* Returns
* OM7-11: "Consent Indicator" - creates it if necessary
*/
public ID getConsentIndicator() {
ID retVal = this.getTypedField(11, 0);
return retVal;
}
/**
* Returns
* OM7-11: "Consent Indicator" - creates it if necessary
*/
public ID getOm711_ConsentIndicator() {
ID retVal = this.getTypedField(11, 0);
return retVal;
}
/**
* Returns
* OM7-12: "Consent Identifier" - creates it if necessary
*/
public CWE getConsentIdentifier() {
CWE retVal = this.getTypedField(12, 0);
return retVal;
}
/**
* Returns
* OM7-12: "Consent Identifier" - creates it if necessary
*/
public CWE getOm712_ConsentIdentifier() {
CWE retVal = this.getTypedField(12, 0);
return retVal;
}
/**
* Returns
* OM7-13: "Consent Effective Start Date/Time" - creates it if necessary
*/
public DTM getConsentEffectiveStartDateTime() {
DTM retVal = this.getTypedField(13, 0);
return retVal;
}
/**
* Returns
* OM7-13: "Consent Effective Start Date/Time" - creates it if necessary
*/
public DTM getOm713_ConsentEffectiveStartDateTime() {
DTM retVal = this.getTypedField(13, 0);
return retVal;
}
/**
* Returns
* OM7-14: "Consent Effective End Date/Time" - creates it if necessary
*/
public DTM getConsentEffectiveEndDateTime() {
DTM retVal = this.getTypedField(14, 0);
return retVal;
}
/**
* Returns
* OM7-14: "Consent Effective End Date/Time" - creates it if necessary
*/
public DTM getOm714_ConsentEffectiveEndDateTime() {
DTM retVal = this.getTypedField(14, 0);
return retVal;
}
/**
* Returns
* OM7-15: "Consent Interval Quantity" - creates it if necessary
*/
public NM getConsentIntervalQuantity() {
NM retVal = this.getTypedField(15, 0);
return retVal;
}
/**
* Returns
* OM7-15: "Consent Interval Quantity" - creates it if necessary
*/
public NM getOm715_ConsentIntervalQuantity() {
NM retVal = this.getTypedField(15, 0);
return retVal;
}
/**
* Returns
* OM7-16: "Consent Interval Units" - creates it if necessary
*/
public CWE getConsentIntervalUnits() {
CWE retVal = this.getTypedField(16, 0);
return retVal;
}
/**
* Returns
* OM7-16: "Consent Interval Units" - creates it if necessary
*/
public CWE getOm716_ConsentIntervalUnits() {
CWE retVal = this.getTypedField(16, 0);
return retVal;
}
/**
* Returns
* OM7-17: "Consent Waiting Period Quantity" - creates it if necessary
*/
public NM getConsentWaitingPeriodQuantity() {
NM retVal = this.getTypedField(17, 0);
return retVal;
}
/**
* Returns
* OM7-17: "Consent Waiting Period Quantity" - creates it if necessary
*/
public NM getOm717_ConsentWaitingPeriodQuantity() {
NM retVal = this.getTypedField(17, 0);
return retVal;
}
/**
* Returns
* OM7-18: "Consent Waiting Period Units" - creates it if necessary
*/
public CWE getConsentWaitingPeriodUnits() {
CWE retVal = this.getTypedField(18, 0);
return retVal;
}
/**
* Returns
* OM7-18: "Consent Waiting Period Units" - creates it if necessary
*/
public CWE getOm718_ConsentWaitingPeriodUnits() {
CWE retVal = this.getTypedField(18, 0);
return retVal;
}
/**
* Returns
* OM7-19: "Effective Date/Time of Change" - creates it if necessary
*/
public DTM getEffectiveDateTimeOfChange() {
DTM retVal = this.getTypedField(19, 0);
return retVal;
}
/**
* Returns
* OM7-19: "Effective Date/Time of Change" - creates it if necessary
*/
public DTM getOm719_EffectiveDateTimeOfChange() {
DTM retVal = this.getTypedField(19, 0);
return retVal;
}
/**
* Returns
* OM7-20: "Entered By" - creates it if necessary
*/
public XCN getEnteredBy() {
XCN retVal = this.getTypedField(20, 0);
return retVal;
}
/**
* Returns
* OM7-20: "Entered By" - creates it if necessary
*/
public XCN getOm720_EnteredBy() {
XCN retVal = this.getTypedField(20, 0);
return retVal;
}
/**
* Returns all repetitions of Orderable-at Location (OM7-21).
*/
public PL[] getOrderableAtLocation() {
PL[] retVal = this.getTypedField(21, new PL[0]);
return retVal;
}
/**
* Returns all repetitions of Orderable-at Location (OM7-21).
*/
public PL[] getOm721_OrderableAtLocation() {
PL[] retVal = this.getTypedField(21, new PL[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Orderable-at Location (OM7-21).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOrderableAtLocationReps() {
return this.getReps(21);
}
/**
* Returns a specific repetition of
* OM7-21: "Orderable-at Location" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public PL getOrderableAtLocation(int rep) {
PL retVal = this.getTypedField(21, rep);
return retVal;
}
/**
* Returns a specific repetition of
* OM7-21: "Orderable-at Location" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public PL getOm721_OrderableAtLocation(int rep) {
PL retVal = this.getTypedField(21, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Orderable-at Location (OM7-21).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOm721_OrderableAtLocationReps() {
return this.getReps(21);
}
/**
* Inserts a repetition of
* OM7-21: "Orderable-at Location" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public PL insertOrderableAtLocation(int rep) throws HL7Exception {
return (PL) super.insertRepetition(21, rep);
}
/**
* Inserts a repetition of
* OM7-21: "Orderable-at Location" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public PL insertOm721_OrderableAtLocation(int rep) throws HL7Exception {
return (PL) super.insertRepetition(21, rep);
}
/**
* Removes a repetition of
* OM7-21: "Orderable-at Location" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public PL removeOrderableAtLocation(int rep) throws HL7Exception {
return (PL) super.removeRepetition(21, rep);
}
/**
* Removes a repetition of
* OM7-21: "Orderable-at Location" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public PL removeOm721_OrderableAtLocation(int rep) throws HL7Exception {
return (PL) super.removeRepetition(21, rep);
}
/**
* Returns
* OM7-22: "Formulary Status" - creates it if necessary
*/
public CWE getFormularyStatus() {
CWE retVal = this.getTypedField(22, 0);
return retVal;
}
/**
* Returns
* OM7-22: "Formulary Status" - creates it if necessary
*/
public CWE getOm722_FormularyStatus() {
CWE retVal = this.getTypedField(22, 0);
return retVal;
}
/**
* Returns
* OM7-23: "Special Order Indicator" - creates it if necessary
*/
public ID getSpecialOrderIndicator() {
ID retVal = this.getTypedField(23, 0);
return retVal;
}
/**
* Returns
* OM7-23: "Special Order Indicator" - creates it if necessary
*/
public ID getOm723_SpecialOrderIndicator() {
ID retVal = this.getTypedField(23, 0);
return retVal;
}
/**
* Returns all repetitions of Primary Key Value - CDM (OM7-24).
*/
public CWE[] getPrimaryKeyValueCDM() {
CWE[] retVal = this.getTypedField(24, new CWE[0]);
return retVal;
}
/**
* Returns all repetitions of Primary Key Value - CDM (OM7-24).
*/
public CWE[] getOm724_PrimaryKeyValueCDM() {
CWE[] retVal = this.getTypedField(24, new CWE[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Primary Key Value - CDM (OM7-24).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPrimaryKeyValueCDMReps() {
return this.getReps(24);
}
/**
* Returns a specific repetition of
* OM7-24: "Primary Key Value - CDM" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getPrimaryKeyValueCDM(int rep) {
CWE retVal = this.getTypedField(24, rep);
return retVal;
}
/**
* Returns a specific repetition of
* OM7-24: "Primary Key Value - CDM" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getOm724_PrimaryKeyValueCDM(int rep) {
CWE retVal = this.getTypedField(24, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Primary Key Value - CDM (OM7-24).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOm724_PrimaryKeyValueCDMReps() {
return this.getReps(24);
}
/**
* Inserts a repetition of
* OM7-24: "Primary Key Value - CDM" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertPrimaryKeyValueCDM(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(24, rep);
}
/**
* Inserts a repetition of
* OM7-24: "Primary Key Value - CDM" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertOm724_PrimaryKeyValueCDM(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(24, rep);
}
/**
* Removes a repetition of
* OM7-24: "Primary Key Value - CDM" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removePrimaryKeyValueCDM(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(24, rep);
}
/**
* Removes a repetition of
* OM7-24: "Primary Key Value - CDM" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeOm724_PrimaryKeyValueCDM(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(24, rep);
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new NM(getMessage());
case 1: return new CWE(getMessage());
case 2: return new CWE(getMessage());
case 3: return new TX(getMessage());
case 4: return new ST(getMessage());
case 5: return new DTM(getMessage());
case 6: return new DTM(getMessage());
case 7: return new NM(getMessage());
case 8: return new CWE(getMessage());
case 9: return new CWE(getMessage());
case 10: return new ID(getMessage(), new Integer( 136 ));
case 11: return new CWE(getMessage());
case 12: return new DTM(getMessage());
case 13: return new DTM(getMessage());
case 14: return new NM(getMessage());
case 15: return new CWE(getMessage());
case 16: return new NM(getMessage());
case 17: return new CWE(getMessage());
case 18: return new DTM(getMessage());
case 19: return new XCN(getMessage());
case 20: return new PL(getMessage());
case 21: return new CWE(getMessage());
case 22: return new ID(getMessage(), new Integer( 136 ));
case 23: return new CWE(getMessage());
default: return null;
}
}
}