예제 #1
0
        private NuGenHL7Exception testValueAgainstTable(System.String profileID, System.String codeSystem, System.String value_Renamed)
        {
            NuGenHL7Exception ret   = null;
            CodeStore         store = ProfileStoreFactory.getCodeStore(profileID, codeSystem);

            if (store == null)
            {
            }
            else
            {
                if (!store.isValidCode(codeSystem, value_Renamed))
                {
                    ret = new NuGenProfileNotFollowedException("Code " + value_Renamed + " not found in table " + codeSystem + ", profile " + profileID);
                }
            }
            return(ret);
        }
예제 #2
0
        /// <summary> Returns the first code store that knows the codes in the given code
        /// system (as per CodeStore.knowsCodes) and is registered for the given profile.
        /// Code stores are checked in the order in which they are added (with addCodeStore()).
        /// </summary>
        /// <returns> null if none are found
        /// </returns>
        public static CodeStore getCodeStore(System.String profileID, System.String codeSystem)
        {
            CodeStore store = null;

            return(store);
        }