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

How to use
CTD
in
ca.uhn.hl7v2.model.v231.segment

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

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

/**
 * Returns a count of the current number of repetitions of Contact Address (CTD-3).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getContactAddressReps() {
  return this.getReps(3);
}
origin: ca.uhn.hapi/hapi-structures-v231

/**
 * Returns all repetitions of Contact Name (CTD-2).
 */
public XPN[] getCtd2_ContactName() {
  XPN[] retVal = this.getTypedField(2, new XPN[0]);
  return retVal;
}
origin: ca.uhn.hapi/hapi-osgi-base

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

private void init(ModelClassFactory factory) {
  try {
               this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Contact Role");
               this.add(XPN.class, false, 0, 106, new Object[]{ getMessage() }, "Contact Name");
               this.add(XAD.class, false, 0, 200, new Object[]{ getMessage() }, "Contact Address");
               this.add(PL.class, false, 1, 60, new Object[]{ getMessage() }, "Contact Location");
               this.add(XTN.class, false, 0, 100, new Object[]{ getMessage() }, "Contact Communication Information");
               this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Preferred Method Of Contact");
               this.add(PI.class, false, 0, 100, new Object[]{ getMessage() }, "Contact Identifiers");
  } catch(HL7Exception e) {
   log.error("Unexpected error creating CTD - 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 XPN(getMessage());
   case 2: return new XAD(getMessage());
   case 3: return new PL(getMessage());
   case 4: return new XTN(getMessage());
   case 5: return new CE(getMessage());
   case 6: return new PI(getMessage());
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-osgi-base

private void init(ModelClassFactory factory) {
  try {
               this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Contact Role");
               this.add(XPN.class, false, 0, 106, new Object[]{ getMessage() }, "Contact Name");
               this.add(XAD.class, false, 0, 200, new Object[]{ getMessage() }, "Contact Address");
               this.add(PL.class, false, 1, 60, new Object[]{ getMessage() }, "Contact Location");
               this.add(XTN.class, false, 0, 100, new Object[]{ getMessage() }, "Contact Communication Information");
               this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Preferred Method Of Contact");
               this.add(PI.class, false, 0, 100, new Object[]{ getMessage() }, "Contact Identifiers");
  } catch(HL7Exception e) {
   log.error("Unexpected error creating CTD - this is probably a bug in the source code generator.", e);
  }
}
origin: ca.uhn.hapi/hapi-structures-v231

/** {@inheritDoc} */   
protected Type createNewTypeWithoutReflection(int field) {
  switch (field) {
   case 0: return new CE(getMessage());
   case 1: return new XPN(getMessage());
   case 2: return new XAD(getMessage());
   case 3: return new PL(getMessage());
   case 4: return new XTN(getMessage());
   case 5: return new CE(getMessage());
   case 6: return new PI(getMessage());
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-structures-v231

/**
 * Returns a specific repetition of
 * CTD-2: "Contact Name" - creates it if necessary
 *
 * @param rep The repetition index (0-indexed)
 */
public XPN getCtd2_ContactName(int rep) { 
  XPN retVal = this.getTypedField(2, rep);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v231

/**
 * Returns a count of the current number of repetitions of Contact Address (CTD-3).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getCtd3_ContactAddressReps() {
  return this.getReps(3);
}
origin: ca.uhn.hapi/hapi-structures-v231

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

/**
 * Returns all repetitions of Contact Address (CTD-3).
 */
public XAD[] getContactAddress() {
  XAD[] retVal = this.getTypedField(3, new XAD[0]);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v231

/**
 * Returns a count of the current number of repetitions of Contact Role (CTD-1).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getContactRoleReps() {
  return this.getReps(1);
}
origin: ca.uhn.hapi/hapi-structures-v231

/**
 * Returns a specific repetition of
 * CTD-3: "Contact Address" - creates it if necessary
 *
 * @param rep The repetition index (0-indexed)
 */
public XAD getContactAddress(int rep) { 
  XAD retVal = this.getTypedField(3, rep);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v231

/**
 * Returns a count of the current number of repetitions of Contact Role (CTD-1).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getCtd1_ContactRoleReps() {
  return this.getReps(1);
}
origin: ca.uhn.hapi/hapi-structures-v231

/**
 * Returns
 * CTD-4: "Contact Location" - creates it if necessary
 */
public PL getCtd4_ContactLocation() { 
  PL retVal = this.getTypedField(4, 0);
  return retVal;
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Returns a count of the current number of repetitions of Contact Communication Information (CTD-5).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getCtd5_ContactCommunicationInformationReps() {
  return this.getReps(5);
}
origin: ca.uhn.hapi/hapi-structures-v231

/**
 * Returns
 * CTD-6: "Preferred Method Of Contact" - creates it if necessary
 */
public CE getCtd6_PreferredMethodOfContact() { 
  CE retVal = this.getTypedField(6, 0);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v231

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

/**
 * Returns all repetitions of Contact Role (CTD-1).
 */
public CE[] getCtd1_ContactRole() {
  CE[] retVal = this.getTypedField(1, new CE[0]);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v231

/**
 * Returns a count of the current number of repetitions of Contact Communication Information (CTD-5).
 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 * it will return zero.
 */
public int getContactCommunicationInformationReps() {
  return this.getReps(5);
}
ca.uhn.hl7v2.model.v231.segmentCTD

Javadoc

Represents an HL7 CTD message segment (Contact Data). This segment has the following fields:

  • CTD-1: Contact Role (CE) optional repeating
  • CTD-2: Contact Name (XPN) optional repeating
  • CTD-3: Contact Address (XAD) optional repeating
  • CTD-4: Contact Location (PL) optional
  • CTD-5: Contact Communication Information (XTN) optional repeating
  • CTD-6: Preferred Method Of Contact (CE) optional
  • CTD-7: Contact Identifiers (PI) optional repeating

Most used methods

  • add
  • getMessage
  • getReps
  • getTypedField
  • init

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JCheckBox (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Sublime Text 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