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

How to use
CE
in
ca.uhn.hl7v2.model.v25.datatype

Best Java code snippets using ca.uhn.hl7v2.model.v25.datatype.CE (Showing top 20 results out of 315)

origin: openmrs/openmrs-core

/**
 * Get an openmrs Concept object out of the given hl7 coded element
 *
 * @param codedElement ce to pull from
 * @param uid unique string for this message for any error reporting purposes
 * @return new Concept object
 * @throws HL7Exception if parsing errors occur
 */
private Concept getConcept(CE codedElement, String uid) throws HL7Exception {
  String hl7ConceptId = codedElement.getIdentifier().getValue();
  
  String codingSystem = codedElement.getNameOfCodingSystem().getValue();
  return getConcept(hl7ConceptId, codingSystem, uid);
}

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

private void init() {
  data = new Type[6];    
  data[0] = new ST(getMessage());
  data[1] = new ST(getMessage());
  data[2] = new ID(getMessage(), 396);
  data[3] = new ST(getMessage());
  data[4] = new ST(getMessage());
  data[5] = new ID(getMessage(), 396);
}
origin: openmrs/openmrs-core

String valueIdentifier = value.getIdentifier().getValue();
String valueName = value.getText().getValue();
if (isConceptProposal(valueIdentifier)) {
  throw new ProposingConceptException(concept, valueName);
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 CE(getMessage());
   case 2: return new CE(getMessage());
   case 3: return new CE(getMessage());
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-examples

obr.getFillerOrderNumber().getEntityIdentifier().setValue("1234");
obr.getFillerOrderNumber().getNamespaceID().setValue("LAB");
obr.getUniversalServiceIdentifier().getIdentifier().setValue("88304");
obx.getObservationIdentifier().getIdentifier().setValue("88304");
obx.getObservationSubID().setValue("1");
CE ce = new CE(message);
ce.getIdentifier().setValue("T57000");
ce.getText().setValue("GALLBLADDER");
ce.getNameOfCodingSystem().setValue("SNM");
Varies value = obx.getObservationValue(0);
value.setData(ce);
ST observationIdentifier = obx.getObservationIdentifier().getIdentifier();
observationIdentifier.setValue("88304");
ST extraSubcomponent = new ST(message);
origin: ca.uhn.hapi/hapi-structures-v25

/**
 * Returns Text (component 2).  This is a convenience method that saves you from 
 * casting and handling an exception.
 */
public ST getCe2_Text() {
  return getTyped(1, ST.class);
}
origin: ca.uhn.hapi/hapi-osgi-base

/** 
 * Creates a new CE type
 */
public CE(Message message) {
  super(message);
  init();
}
origin: openmrs/openmrs-core

if (!StringUtils.hasText(obr.getUniversalServiceIdentifier().getIdentifier().getValue())) {
  throw new HL7Exception(Context.getMessageSourceService().getMessage("ORUR01.errorInvalidOBR ",
    new Object[] { messageControlId }, null));
origin: ca.uhn.hapi/hapi-structures-v25

/** {@inheritDoc} */   
protected Type createNewTypeWithoutReflection(int field) {
  switch (field) {
   case 0: return new PL(getMessage());
   case 1: return new CE(getMessage());
   case 2: return new CE(getMessage());
   case 3: return new CE(getMessage());
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-structures-v25

/**
 * Returns Name of Coding System (component 3).  This is a convenience method that saves you from 
 * casting and handling an exception.
 */
public ID getNameOfCodingSystem() {
  return getTyped(2, ID.class);
}
origin: ca.uhn.hapi/hapi-structures-v25

/** 
 * Creates a new CE type
 */
public CE(Message message) {
  super(message);
  init();
}
origin: ca.uhn.hapi/hapi-structures-v25

/** {@inheritDoc} */   
protected Type createNewTypeWithoutReflection(int field) {
  switch (field) {
   case 0: return new SI(getMessage());
   case 1: return new CE(getMessage());
   case 2: return new CE(getMessage());
   case 3: return new CE(getMessage());
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Returns Alternate Text (component 5).  This is a convenience method that saves you from 
 * casting and handling an exception.
 */
public ST getAlternateText() {
  return getTyped(4, ST.class);
}
origin: openmrs/openmrs-core

String relCodingSystem = nk1.getRelationship().getNameOfCodingSystem().getValue();
if (!relCodingSystem.equals(HL7Constants.HL7_LOCAL_RELATIONSHIP)) {
  throw new HL7Exception(Context.getMessageSourceService().getMessage("ORUR01.error.relationshipCoding",
String relIdentifier = nk1.getRelationship().getIdentifier().getValue();
origin: ca.uhn.hapi/hapi-osgi-base

private void init() {
  data = new Type[6];    
  data[0] = new ST(getMessage());
  data[1] = new ST(getMessage());
  data[2] = new ID(getMessage(), 396);
  data[3] = new ST(getMessage());
  data[4] = new ST(getMessage());
  data[5] = new ID(getMessage(), 396);
}
origin: ca.uhn.hapi/hapi-structures-v25

/** {@inheritDoc} */   
protected Type createNewTypeWithoutReflection(int field) {
  switch (field) {
   case 0: return new CE(getMessage());
   case 1: return new TS(getMessage());
   case 2: return new CE(getMessage());
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-structures-v25

/**
 * Returns Identifier (component 1).  This is a convenience method that saves you from 
 * casting and handling an exception.
 */
public ST getIdentifier() {
  return getTyped(0, ST.class);
}
origin: ca.uhn.hapi/hapi-osgi-base

/** {@inheritDoc} */   
protected Type createNewTypeWithoutReflection(int field) {
  switch (field) {
   case 0: return new NM(getMessage());
   case 1: return new CE(getMessage());
   case 2: return new CE(getMessage());
   default: return null;
  }
}
origin: ca.uhn.hapi/hapi-structures-v25

/**
 * Returns Text (component 2).  This is a convenience method that saves you from 
 * casting and handling an exception.
 */
public ST getText() {
  return getTyped(1, ST.class);
}
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 TS(getMessage());
   case 2: return new CE(getMessage());
   default: return null;
  }
}
ca.uhn.hl7v2.model.v25.datatypeCE

Javadoc

Represents an HL7 CE (Coded Element) data type. This type consists of the following components:

  • Identifier (ST)
  • Text (ST)
  • Name of Coding System (ID)
  • Alternate Identifier (ST)
  • Alternate Text (ST)
  • Name of Alternate Coding System (ID)

Most used methods

  • <init>
    Creates a new CE type
  • getIdentifier
    Returns Identifier (component 1). This is a convenience method that saves you from casting and handl
  • getMessage
  • getNameOfCodingSystem
    Returns Name of Coding System (component 3). This is a convenience method that saves you from castin
  • getText
    Returns Text (component 2). This is a convenience method that saves you from casting and handling an
  • getTyped
  • init
  • getAlternateIdentifier
    Returns Alternate Identifier (component 4). This is a convenience method that saves you from casting
  • getNameOfAlternateCodingSystem
    Returns Name of Alternate Coding System (component 6). This is a convenience method that saves you f

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • 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