Examples of CodeStore


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

        }       
    }
   
    private HL7Exception testValueAgainstTable(String profileID, String codeSystem, String value) {
        HL7Exception ret = null;
        CodeStore store = ProfileStoreFactory.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.isValidCode(codeSystem, value))
                ret = new ProfileNotFollowedException("Code " + value + " not found in table " + codeSystem + ", profile " + profileID);
        }
        return ret;
    }
View Full Code Here

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

        HL7Exception ret = null;
        if (validateChildren == false) {
          return ret;
        }
       
        CodeStore store = codeStore;
    if (codeStore == null) {
      store = ProfileStoreFactory.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.isValidCode(codeSystem, value))
                ret = new ProfileNotFollowedException("Code " + value + " not found in table " + codeSystem + ", profile " + profileID);
        }
        return ret;
    }
View Full Code Here

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

        HL7Exception ret = null;
        if (validateChildren == false) {
          return ret;
        }
       
        CodeStore store = codeStore;
    if (codeStore == null) {
      store = ProfileStoreFactory.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

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

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

      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
TOP
Copyright © 2018 www.massapi.com. 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.