示例#1
0
 /// <summary>
 /// Creates the ordered dictionary of items in the order defined.
 /// </summary>
 /// <param name="type"></param>
 /// <param name="ver"></param>
 /// <param name="flds"></param>
 public void DefineFields(JaffaRecordType type, int ver, params string[] flds)
 {
     foreach (string q in flds)
     {
         this.Add(q, "");
     }
     RecordType  = type.ToString();
     LineVersion = ver.ToString();
 }
示例#2
0
        /// <summary>
        /// Defines the jaffa fields based on type
        /// </summary>
        /// <param name="recordtype"></param>
        public JaffaSpec(JaffaRecordType recordtype)
        {
            switch (recordtype)
            {
            case JaffaRecordType.CNCT:        //Contacts
                DefineFields(recordtype, 3, "RecordType", "LineVersion", "SourcePatID", "OriginalContactID", "DateOfContact", "TimeOfContact", "PlaceOfService", "ProviderOfService", "TypeCode", "Diagnosis",
                             "Service", "Note", "ExternalProvider", "GroupID", "Title", "Resolved", "ResolvedOn", "Duration", "Activity", "Location", "ChildProtection", "CaseService", "CefTemplate",
                             "SearchBy", "DtCreated", "NotAssignCaseService", "ParentContact", "CaseTitle", "CreatedBy", "Privacy", "NoteToText", "DeleteContactByContactID", "LinkedImagePath",
                             "LinkedImageSubject", "RefSysName", "RefSysNum", "IsDeleted", "GUID", "CaseGUID", "Section",
                             "SectionSysId", "LocationSysId", "TypeCodeSysId", "DiagnosisSysId", "MasterVersion", "MasterDateTime", "AuthProvider", "PlaceOfServiceGUID", "TypeCodeGUID",
                             "LocationGUID", "SectionGUID", "ProviderOfServiceGUID", "AuthProviderGUID", "CreatedByGUID", "ExternalProviderGUID", "DiagnosisGUID", "ServiceGUID", "ActivityGUID");
                break;

            default:
                throw new Exception("Specification not defined.");
            }
        }