/** * 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); }
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); }
String valueIdentifier = value.getIdentifier().getValue(); String valueName = value.getText().getValue(); if (isConceptProposal(valueIdentifier)) { throw new ProposingConceptException(concept, valueName);
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);
/** * 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); }
/** * Creates a new CE type */ public CE(Message message) { super(message); init(); }
if (!StringUtils.hasText(obr.getUniversalServiceIdentifier().getIdentifier().getValue())) { throw new HL7Exception(Context.getMessageSourceService().getMessage("ORUR01.errorInvalidOBR ", new Object[] { messageControlId }, null));
/** * 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); }
/** * Creates a new CE type */ public CE(Message message) { super(message); init(); }
/** * 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); }
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();
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); }
/** * 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); }
/** * 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); }