Package ca.uhn.hl7v2.conf.store

Examples of ca.uhn.hl7v2.conf.store.CodeStore


    HL7Exception ret = null;
    if (!validateChildren) {
      return ret;
    }

    CodeStore store = codeStore;
    if (codeStore == null) {
      store = getHapiContext().getCodeStoreRegistry().getCodeStore(profileID, codeSystem);
    }

    if (store == null) {
      log.warn(
          "Not checking value {}: no code store was found for profile {} code system {}",
          new Object[] { value, profileID, codeSystem });
    } else {
      if (!store.knowsCodes(codeSystem)) {
        log.warn("Not checking value {}: Don't have a table for code system {}", value,
            codeSystem);
      } else if (!store.isValidCode(codeSystem, value)) {
        ret = new ProfileNotFollowedException("Code '" + value + "' not found in table "
            + codeSystem + ", profile " + profileID);
      }
    }
    return ret;
View Full Code Here


      testValueAgainstTable(profileID, codeSystem, value, exList);
    }
  }

  protected void testValueAgainstTable(String profileID, String codeSystem, String value, List<HL7Exception> exList) {
    CodeStore store = codeStore;
    if (codeStore == null) {
      store = getHapiContext().getCodeStoreRegistry().getCodeStore(profileID, codeSystem);
    }

    if (store == null) {
      log.info(
          "Not checking value {}: no code store was found for profile {} code system {}",
          new Object[] { value, profileID, codeSystem });
    } else {
      if (!store.knowsCodes(codeSystem)) {
        log.warn("Not checking value {}: Don't have a table for code system {}", value,
            codeSystem);
      } else if (!store.isValidCode(codeSystem, value)) {
        exList.add(new ProfileNotFollowedException("Code '" + value + "' not found in table "
            + codeSystem + ", profile " + profileID));
      }
    }
View Full Code Here

public class HL7Server {

    private SimpleServer server;

    public HL7Server(int port) {
        LowerLayerProtocol llp = LowerLayerProtocol.makeLLP(); // The transport protocol
        PipeParser parser = new PipeParser();
        server = new SimpleServer(port, llp, parser);
    }
View Full Code Here

        return new HL7Endpoint();
    }

    @Override
    protected void startEndpoint(HL7Endpoint endpoint) throws AxisFault {
        LowerLayerProtocol llp = LowerLayerProtocol.makeLLP();
        PipeParser parser = new PipeParser();
        SimpleServer server = new SimpleServer(endpoint.getPort(), llp, parser);
        Application callback = new HL7MessageProcessor(endpoint);
        server.registerApplication("*", "*", callback);
        server.start();
View Full Code Here

    public Type getComponent(int number) throws DataTypeException {

        try {
            return this.data[number];
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new DataTypeException("Element " + number + " doesn't exist (Type " + getClass().getName() + " has only " + this.data.length + " components)");
        }
    }
View Full Code Here

    public Type getComponent(int number) throws DataTypeException {

        try {
            return this.data[number];
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new DataTypeException("Element " + number + " doesn't exist (Type " + getClass().getName() + " has only " + this.data.length + " components)");
        }
    }
View Full Code Here

    public Type getComponent(int number) throws DataTypeException {

        try {
            return this.data[number];
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new DataTypeException("Element " + number + " doesn't exist (Type " + getClass().getName() + " has only " + this.data.length + " components)");
        }
    }
View Full Code Here

    public Type getComponent(int number) throws DataTypeException {

        try {
            return this.data[number];
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new DataTypeException("Element " + number + " doesn't exist (Type " + getClass().getName() + " has only " + this.data.length + " components)");
        }
    }
View Full Code Here

    public Type getComponent(int number) throws DataTypeException {

        try {
            return this.data[number];
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new DataTypeException("Element " + number + " doesn't exist (Type " + getClass().getName() + " has only " + this.data.length + " components)");
        }
    }
View Full Code Here

    public Type getComponent(int number) throws DataTypeException {

        try {
            return this.data[number];
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new DataTypeException("Element " + number + " doesn't exist (Type " + getClass().getName() + " has only " + this.data.length + " components)");
        }
    }
View Full Code Here

TOP

Related Classes of ca.uhn.hl7v2.conf.store.CodeStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.