/** * @see org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource#getByUniqueId(java.lang.String) */ @Override public HL7Source getByUniqueId(String uniqueId) { return Context.getHL7Service().getHL7SourceByName(uniqueId); }
@Override public HL7Source newObject() { return Context.getHL7Service().getHL7SourceByName(RestTestConstants1_8.HL7_SOURCE_NAME); }
post.add("data", hl7); HL7Source hl7Source = Context.getHL7Service().getHL7SourceByName(source); if (hl7Source == null) { throw new ConversionException("The " + source + " source was not recognized");
@Override public IncomingHl7Message1_8 newObject() { HL7InQueue msg = new HL7InQueue(); msg.setHL7Data("hl7Data"); msg.setHL7SourceKey("sourceKey"); msg.setHL7Source(Context.getHL7Service().getHL7SourceByName(RestTestConstants1_8.HL7_SOURCE_NAME)); Context.getHL7Service().saveHL7InQueue(msg); return new IncomingHl7Message1_8(msg); }