Exemple #1
0
 ///<summary>Gets from C# internal code rather than db</summary>
 private static void GetDeepForInternal(HL7Def def)
 {
     //No need to check RemotingRole; no call to db.
     if (def.InternalType == HL7InternalType.eCWFull)
     {
         def = InternalEcwFull.GetDeepInternal(def);              //def that we're passing in is guaranteed to not be null
     }
     else if (def.InternalType == HL7InternalType.eCWStandalone)
     {
         def = InternalEcwStandalone.GetDeepInternal(def);
     }
     else if (def.InternalType == HL7InternalType.eCWTight)
     {
         def = InternalEcwTight.GetDeepInternal(def);
     }
     else if (def.InternalType == HL7InternalType.Centricity)
     {
         def = InternalCentricity.GetDeepInternal(def);
     }
     else if (def.InternalType == HL7InternalType.HL7v2_6)
     {
         def = InternalHL7v2_6.GetDeepInternal(def);
     }
     else if (def.InternalType == HL7InternalType.MedLabv2_3)
     {
         def = MedLabv2_3.GetDeepInternal(def);
     }
     //no need to return a def because the original reference won't have been lost.
 }
Exemple #2
0
        ///<summary>Gets a full deep list of all internal defs.  If one is enabled, then it might be in database.</summary>
        public static List <HL7Def> GetDeepInternalList()
        {
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                return(Meth.GetObject <List <HL7Def> >(MethodBase.GetCurrentMethod()));
            }
            List <HL7Def> listInternal = new List <HL7Def>();
            HL7Def        def;

            def = GetInternalFromDb(HL7InternalType.eCWFull);          //might be null
            def = InternalEcwFull.GetDeepInternal(def);
            listInternal.Add(def);
            def = GetInternalFromDb(HL7InternalType.eCWStandalone);
            def = InternalEcwStandalone.GetDeepInternal(def);
            listInternal.Add(def);
            def = GetInternalFromDb(HL7InternalType.eCWTight);
            def = InternalEcwTight.GetDeepInternal(def);
            listInternal.Add(def);
            def = GetInternalFromDb(HL7InternalType.Centricity);
            def = InternalCentricity.GetDeepInternal(def);
            listInternal.Add(def);
            def = GetInternalFromDb(HL7InternalType.HL7v2_6);
            def = InternalHL7v2_6.GetDeepInternal(def);
            listInternal.Add(def);
            def = GetInternalFromDb(HL7InternalType.MedLabv2_3);
            def = MedLabv2_3.GetDeepInternal(def);
            listInternal.Add(def);
            //Add defs for other companies like Centricity here later.
            return(listInternal);
        }