Codota Logo
AL1
Code IndexAdd Codota to your IDE (free)

How to use
AL1
in
ca.uhn.hl7v2.model.v26.segment

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: ca.uhn.hapi/hapi-osgi-base

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

/**
 * Returns
 * AL1-6: "Identification Date" - creates it if necessary
 */
public DT getIdentificationDate() { 
  DT retVal = this.getTypedField(6, 0);
  return retVal;
}
 
origin: ca.uhn.hapi/hapi-structures-v26

private void init(ModelClassFactory factory) {
  try {
               this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - AL1");
               this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Allergen Type Code");
               this.add(CWE.class, true, 1, 705, new Object[]{ getMessage() }, "Allergen Code/Mnemonic/Description");
               this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Allergy Severity Code");
               this.add(ST.class, false, 0, 15, new Object[]{ getMessage() }, "Allergy Reaction Code");
               this.add(DT.class, false, 1, 0, new Object[]{ getMessage() }, "Identification Date");
  } catch(HL7Exception e) {
   log.error("Unexpected error creating AL1 - this is probably a bug in the source code generator.", e);
  }
}
origin: ca.uhn.hapi/hapi-structures-v26

/** {@inheritDoc} */   
protected Type createNewTypeWithoutReflection(int field) {
  switch (field) {
   case 0: return new SI(getMessage());
   case 1: return new CWE(getMessage());
   case 2: return new CWE(getMessage());
   case 3: return new CWE(getMessage());
   case 4: return new ST(getMessage());
   case 5: return new DT(getMessage());
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-structures-v26

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

private void init(ModelClassFactory factory) {
  try {
               this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - AL1");
               this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Allergen Type Code");
               this.add(CWE.class, true, 1, 705, new Object[]{ getMessage() }, "Allergen Code/Mnemonic/Description");
               this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Allergy Severity Code");
               this.add(ST.class, false, 0, 15, new Object[]{ getMessage() }, "Allergy Reaction Code");
               this.add(DT.class, false, 1, 0, new Object[]{ getMessage() }, "Identification Date");
  } catch(HL7Exception e) {
   log.error("Unexpected error creating AL1 - 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 SI(getMessage());
   case 1: return new CWE(getMessage());
   case 2: return new CWE(getMessage());
   case 3: return new CWE(getMessage());
   case 4: return new ST(getMessage());
   case 5: return new DT(getMessage());
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-osgi-base

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

/**
 * Returns a specific repetition of
 * AL1-5: "Allergy Reaction Code" - creates it if necessary
 *
 * @param rep The repetition index (0-indexed)
 */
public ST getAllergyReactionCode(int rep) { 
  ST retVal = this.getTypedField(5, rep);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v26

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

/**
 * Returns all repetitions of Allergy Reaction Code (AL1-5).
 */
public ST[] getAllergyReactionCode() {
  ST[] retVal = this.getTypedField(5, new ST[0]);
  return retVal;
}
origin: ca.uhn.hapi/hapi-osgi-base

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

/**
 * Returns
 * AL1-6: "Identification Date" - creates it if necessary
 */
public DT getAl16_IdentificationDate() { 
  DT retVal = this.getTypedField(6, 0);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v26

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

/**
 * Returns a specific repetition of
 * AL1-5: "Allergy Reaction Code" - creates it if necessary
 *
 * @param rep The repetition index (0-indexed)
 */
public ST getAl15_AllergyReactionCode(int rep) { 
  ST retVal = this.getTypedField(5, rep);
  return retVal;
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Returns
 * AL1-1: "Set ID - AL1" - creates it if necessary
 */
public SI getSetIDAL1() { 
  SI retVal = this.getTypedField(1, 0);
  return retVal;
}
 
origin: ca.uhn.hapi/hapi-structures-v26

/**
 * Returns all repetitions of Allergy Reaction Code (AL1-5).
 */
public ST[] getAl15_AllergyReactionCode() {
  ST[] retVal = this.getTypedField(5, new ST[0]);
  return retVal;
}
origin: ca.uhn.hapi/hapi-structures-v26

/**
 * Returns
 * AL1-4: "Allergy Severity Code" - creates it if necessary
 */
public CWE getAllergySeverityCode() { 
  CWE retVal = this.getTypedField(4, 0);
  return retVal;
}
 
origin: ca.uhn.hapi/hapi-structures-v26

/**
 * Returns
 * AL1-3: "Allergen Code/Mnemonic/Description" - creates it if necessary
 */
public CWE getAl13_AllergenCodeMnemonicDescription() { 
  CWE retVal = this.getTypedField(3, 0);
  return retVal;
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Returns
 * AL1-6: "Identification Date" - creates it if necessary
 */
public DT getIdentificationDate() { 
  DT retVal = this.getTypedField(6, 0);
  return retVal;
}
 
ca.uhn.hl7v2.model.v26.segmentAL1

Javadoc

Represents an HL7 AL1 message segment (Patient Allergy Information). This segment has the following fields:

  • AL1-1: Set ID - AL1 (SI)
  • AL1-2: Allergen Type Code (CWE) optional
  • AL1-3: Allergen Code/Mnemonic/Description (CWE)
  • AL1-4: Allergy Severity Code (CWE) optional
  • AL1-5: Allergy Reaction Code (ST) optional repeating
  • AL1-6: Identification Date (DT) optional

Most used methods

  • add
  • getMessage
  • getReps
  • getTypedField
  • init

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • String (java.lang)
  • Path (java.nio.file)
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JPanel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now