/** * 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); }
if (!StringUtils.hasText(obr.getUniversalServiceIdentifier().getIdentifier().getValue())) { throw new HL7Exception(Context.getMessageSourceService().getMessage("ORUR01.errorInvalidOBR ", new Object[] { messageControlId }, null));
String relIdentifier = nk1.getRelationship().getIdentifier().getValue();
String valueIdentifier = value.getIdentifier().getValue(); String valueName = value.getText().getValue(); if (isConceptProposal(valueIdentifier)) {
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.getIdentifier().setValue("T57000"); ce.getText().setValue("GALLBLADDER"); ce.getNameOfCodingSystem().setValue("SNM"); ST observationIdentifier = obx.getObservationIdentifier().getIdentifier(); observationIdentifier.setValue("88304"); ST extraSubcomponent = new ST(message);