/** * A convenience method that returns a local code from an underlying * CodeMapper instance by calling <code>CodeMapper.getInstance().getLocalCode(...)</code> */ public static String getLocal(String interfaceName, int hl7Table, String interfaceCode) throws HL7Exception { return CodeMapper.getInstance().getLocalCode(interfaceName, hl7Table, interfaceCode); }
/** * A convenience method that returns an interface code from an underlying * CodeMapper instance by calling <code>CodeMapper.getInstance().getInterfaceCode(...)</code> */ public static String getInt(String interfaceName, int hl7Table, String localCode) throws HL7Exception { return CodeMapper.getInstance().getInterfaceCode(interfaceName, hl7Table, localCode); }
/** * A convenience method that returns a local code from an underlying * CodeMapper instance by calling <code>CodeMapper.getInstance().getLocalCode(...)</code> */ public static String getLocal(String interfaceName, int hl7Table, String interfaceCode) throws HL7Exception { return CodeMapper.getInstance().getLocalCode(interfaceName, hl7Table, interfaceCode); }
/** * A convenience method that returns an interface code from an underlying * CodeMapper instance by calling <code>CodeMapper.getInstance().getInterfaceCode(...)</code> */ public static String getInt(String interfaceName, int hl7Table, String localCode) throws HL7Exception { return CodeMapper.getInstance().getInterfaceCode(interfaceName, hl7Table, localCode); }
/** * Test harness. */ public static void main(String args[]) { try { //FileCodeMapper mapper = new FileCodeMapper(); CodeMapper.getInstance().throwExceptionIfNoMatch(true); System.out.println("Local code for M is " + CodeMapper.getLocal("test", 1, "M")); System.out.println("Interface code for female is " + CodeMapper.getInt("test", 1, "female")); } catch (HL7Exception e) { e.printStackTrace(); } }
/** * Test harness. */ public static void main(String args[]) { try { //FileCodeMapper mapper = new FileCodeMapper(); CodeMapper.getInstance().throwExceptionIfNoMatch(true); System.out.println("Local code for M is " + CodeMapper.getLocal("test", 1, "M")); System.out.println("Interface code for female is " + CodeMapper.getInt("test", 1, "female")); } catch (HL7Exception e) { e.printStackTrace(); } }