/** * Constructs a CodePhrase by terminologyId and codeString * * @param terminologyId * @param codeString * @throws IllegalArgumentException if terminolgy null * or codeString null or empty */ public CodePhrase(String terminologyID, String codeString) { if(terminologyID == null) { throw new IllegalArgumentException("null terminologyId"); } if(StringUtils.isEmpty(codeString)) { throw new IllegalArgumentException("empty codeString"); } this.terminologyId = new TerminologyID(terminologyID); this.codeString = codeString; }
/** * Constructs a CodePhrase by terminologyId and codeString * * @param terminologyId * @param codeString * @throws IllegalArgumentException if terminolgy null * or codeString null or empty */ public CodePhrase(String terminologyID, String codeString) { if(terminologyID == null) { throw new IllegalArgumentException("null terminologyId"); } if(StringUtils.isEmpty(codeString)) { throw new IllegalArgumentException("empty codeString"); } this.terminologyId = new TerminologyID(terminologyID); this.codeString = codeString; }
/** * Convenience constructor to create CCodePhrase with only terminologyId * and single code * * @param path * @param terminologyId * @param code */ public CCodePhrase(String path, String terminologyId, String code) { super(false, path, CODE_PHRASE, new Interval<Integer>(0, 1), null, null, null, null); ArrayList<String> codeList = new ArrayList<String>(); codeList.add(code); this.codeList = codeList; this.terminologyId = new TerminologyID(terminologyId); }
/** * Convenience constructor to create CCodePhrase with only terminologyId * and single code * * @param path * @param terminologyId * @param code */ public CCodePhrase(String path, String terminologyId, String code) { super(false, path, CODE_PHRASE, new Interval<Integer>(0, 1), null, null, null, null); ArrayList<String> codeList = new ArrayList<String>(); codeList.add(code); this.codeList = codeList; this.terminologyId = new TerminologyID(terminologyId); }
/** * Creates a single required CCodePhrase with terminologyId and codeList * * @param path * @param terminologyId * @param codeList * @return */ public static CCodePhrase singleRequired(String path, String terminologyId, List<String> codeList) { Interval<Integer> occurrences = new Interval<Integer>(1,1); TerminologyID tid = new TerminologyID(terminologyId); return new CCodePhrase(path, occurrences, null, null, tid, codeList, null, null); }
/** * Creates a single required CCodePhrase with terminologyId and codeList * * @param path * @param terminologyId * @param codeList * @return */ public static CCodePhrase singleRequired(String path, String terminologyId, List<String> codeList) { Interval<Integer> occurrences = new Interval<Integer>(1,1); TerminologyID tid = new TerminologyID(terminologyId); return new CCodePhrase(path, occurrences, null, null, tid, codeList, null, null); }
terminologyId = new TerminologyID(terminology); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case V_TERM_CODE:
terminologyId = new TerminologyID(terminology); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case V_TERM_CODE: