Tabnine Logo
CDM
Code IndexAdd Tabnine to your IDE (free)

How to use
CDM
in
ca.uhn.hl7v2.model.v251.segment

Best Java code snippets using ca.uhn.hl7v2.model.v251.segment.CDM (Showing top 20 results out of 315)

origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns a count of the current number of repetitions of Charge Code Alias (CDM-2).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getChargeCodeAliasReps() {
  return this.getReps(2);
}
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns a specific repetition of
 * CDM-7: "Procedure Code" - creates it if necessary
 *
 * @param rep The repetition index (0-indexed)
 */
public CE getProcedureCode(int rep) { 
  CE retVal = this.getTypedField(7, rep);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v251

/** 
 * Creates a new CDM segment
 */
public CDM(Group parent, ModelClassFactory factory) {
  super(parent, factory);
  init(factory);
}
origin: ca.uhn.hapi/hapi-structures-v251

private void init(ModelClassFactory factory) {
  try {
               this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Primary Key Value - CDM");
               this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Charge Code Alias");
               this.add(ST.class, true, 1, 20, new Object[]{ getMessage() }, "Charge Description Short");
               this.add(ST.class, false, 1, 250, new Object[]{ getMessage() }, "Charge Description Long");
                     this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(268) }, "Description Override Indicator");
               this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Exploding Charges");
               this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Procedure Code");
                     this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(183) }, "Active/Inactive Flag");
               this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Inventory Number");
               this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Resource Load");
               this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Contract Number");
               this.add(XON.class, false, 0, 250, new Object[]{ getMessage() }, "Contract Organization");
                     this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Room Fee Indicator");
  } catch(HL7Exception e) {
   log.error("Unexpected error creating CDM - this is probably a bug in the source code generator.", e);
  }
}
origin: ca.uhn.hapi/hapi-structures-v251

/** {@inheritDoc} */   
protected Type createNewTypeWithoutReflection(int field) {
  switch (field) {
   case 0: return new CE(getMessage());
   case 1: return new CE(getMessage());
   case 2: return new ST(getMessage());
   case 3: return new ST(getMessage());
   case 4: return new IS(getMessage(), new Integer( 268 ));
   case 5: return new CE(getMessage());
   case 6: return new CE(getMessage());
   case 7: return new ID(getMessage(), new Integer( 183 ));
   case 8: return new CE(getMessage());
   case 9: return new NM(getMessage());
   case 10: return new CX(getMessage());
   case 11: return new XON(getMessage());
   case 12: return new ID(getMessage(), new Integer( 136 ));
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-osgi-base

private void init(ModelClassFactory factory) {
  try {
               this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Primary Key Value - CDM");
               this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Charge Code Alias");
               this.add(ST.class, true, 1, 20, new Object[]{ getMessage() }, "Charge Description Short");
               this.add(ST.class, false, 1, 250, new Object[]{ getMessage() }, "Charge Description Long");
                     this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(268) }, "Description Override Indicator");
               this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Exploding Charges");
               this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Procedure Code");
                     this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(183) }, "Active/Inactive Flag");
               this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Inventory Number");
               this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Resource Load");
               this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Contract Number");
               this.add(XON.class, false, 0, 250, new Object[]{ getMessage() }, "Contract Organization");
                     this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Room Fee Indicator");
  } catch(HL7Exception e) {
   log.error("Unexpected error creating CDM - this is probably a bug in the source code generator.", e);
  }
}
origin: ca.uhn.hapi/hapi-osgi-base

/** {@inheritDoc} */   
protected Type createNewTypeWithoutReflection(int field) {
  switch (field) {
   case 0: return new CE(getMessage());
   case 1: return new CE(getMessage());
   case 2: return new ST(getMessage());
   case 3: return new ST(getMessage());
   case 4: return new IS(getMessage(), new Integer( 268 ));
   case 5: return new CE(getMessage());
   case 6: return new CE(getMessage());
   case 7: return new ID(getMessage(), new Integer( 183 ));
   case 8: return new CE(getMessage());
   case 9: return new NM(getMessage());
   case 10: return new CX(getMessage());
   case 11: return new XON(getMessage());
   case 12: return new ID(getMessage(), new Integer( 136 ));
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns a specific repetition of
 * CDM-7: "Procedure Code" - creates it if necessary
 *
 * @param rep The repetition index (0-indexed)
 */
public CE getCdm7_ProcedureCode(int rep) { 
  CE retVal = this.getTypedField(7, rep);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns a count of the current number of repetitions of Charge Code Alias (CDM-2).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getCdm2_ChargeCodeAliasReps() {
  return this.getReps(2);
}
origin: ca.uhn.hapi/hapi-osgi-base

/** 
 * Creates a new CDM segment
 */
public CDM(Group parent, ModelClassFactory factory) {
  super(parent, factory);
  init(factory);
}
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns
 * CDM-8: "Active/Inactive Flag" - creates it if necessary
 */
public ID getActiveInactiveFlag() { 
  ID retVal = this.getTypedField(8, 0);
  return retVal;
}
 
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns a count of the current number of repetitions of Procedure Code (CDM-7).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getProcedureCodeReps() {
  return this.getReps(7);
}
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns a specific repetition of
 * CDM-9: "Inventory Number" - creates it if necessary
 *
 * @param rep The repetition index (0-indexed)
 */
public CE getCdm9_InventoryNumber(int rep) { 
  CE retVal = this.getTypedField(9, rep);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns a count of the current number of repetitions of Inventory Number (CDM-9).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getCdm9_InventoryNumberReps() {
  return this.getReps(9);
}
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns all repetitions of Contract Number (CDM-11).
 */
public CX[] getCdm11_ContractNumber() {
  CX[] retVal = this.getTypedField(11, new CX[0]);
  return retVal;
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Returns a count of the current number of repetitions of Exploding Charges (CDM-6).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getCdm6_ExplodingChargesReps() {
  return this.getReps(6);
}
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns all repetitions of Contract Organization (CDM-12).
 */
public XON[] getContractOrganization() {
  XON[] retVal = this.getTypedField(12, new XON[0]);
  return retVal;
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Returns a count of the current number of repetitions of Inventory Number (CDM-9).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getCdm9_InventoryNumberReps() {
  return this.getReps(9);
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Returns all repetitions of Charge Code Alias (CDM-2).
 */
public CE[] getCdm2_ChargeCodeAlias() {
  CE[] retVal = this.getTypedField(2, new CE[0]);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v251

/**
 * Returns a count of the current number of repetitions of Contract Number (CDM-11).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getCdm11_ContractNumberReps() {
  return this.getReps(11);
}
ca.uhn.hl7v2.model.v251.segmentCDM

Javadoc

Represents an HL7 CDM message segment (Charge Description Master). This segment has the following fields:

  • CDM-1: Primary Key Value - CDM (CE)
  • CDM-2: Charge Code Alias (CE) optional repeating
  • CDM-3: Charge Description Short (ST)
  • CDM-4: Charge Description Long (ST) optional
  • CDM-5: Description Override Indicator (IS) optional
  • CDM-6: Exploding Charges (CE) optional repeating
  • CDM-7: Procedure Code (CE) optional repeating
  • CDM-8: Active/Inactive Flag (ID) optional
  • CDM-9: Inventory Number (CE) optional repeating
  • CDM-10: Resource Load (NM) optional
  • CDM-11: Contract Number (CX) optional repeating
  • CDM-12: Contract Organization (XON) optional repeating
  • CDM-13: Room Fee Indicator (ID) optional

Most used methods

  • add
  • getMessage
  • getReps
  • getTypedField
  • init

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now