Пример #1
0
 public HD(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[3];
     data[0] = new IS("Namespace ID");
     data[1] = new ST("2 Universal ID");
     data[2] = new ID("Universal ID Type");
 }
Пример #2
0
 public ACK(compositeType parent, string name) : base(null, "ACK")
 {
     data    = new abstractType[2];
     data[0] = new MSH(this, "Message Header");
     data[1] = new MSA(this, "MessageAcknowledgment");
     //           data[2] = new ERR(this, "Sending Application");
 }
Пример #3
0
        public enum enumSegments { ERR, MSA, MSH, EVN, PID, PD1, PV1 };      //状态枚举声明
        public override abstractType Create(compositeType parent, Enum product, string name)
        {
            switch ((enumSegments)product)
            {
            case enumSegments.ERR:
                a = new ERR(parent, name);
                break;

            case enumSegments.EVN:
                a = new EVN(parent, name);
                break;

            case enumSegments.MSA:
                a = new MSA(parent, name);
                break;

            case enumSegments.MSH:
                a = new MSH(parent, name);
                break;

            case enumSegments.PID:
                a = new PID(parent, name);
                break;

            case enumSegments.PV1:
                a = new PV1(parent, name);
                break;

            case enumSegments.PD1:
                a = new PD1(parent, name);
                break;
            }

            return(a);
        }
Пример #4
0
 public MSH(compositeType parent, string name) : base(parent, "MSH")
 {
     data     = new abstractType[21];
     data[0]  = new ST("Field Separator");
     data[1]  = new ST("Encoding Characters");
     data[2]  = new HD(this, "Sending Application");
     data[3]  = new HD(this, "Sending Facility");
     data[4]  = new HD(this, "Receiving Application");
     data[5]  = new HD(this, "Receiving Facility");
     data[6]  = new TS(this, "Date/Time Of Message");
     data[7]  = new ST("Security");
     data[8]  = new MSG(this, "Message Type");
     data[9]  = new ST("Message Control ID");
     data[10] = new PT(this, "Processing ID");
     data[11] = new VID(this, "Version ID");
     data[12] = new NM("Sequence Number");
     data[13] = new ST("Continuation Pointer");
     data[14] = new ID("Accept Acknowledgment Type");
     data[15] = new ID("Application Acknowledgment Type");
     data[16] = new ID("Country Code");
     data[17] = new ID("Character Set");
     data[18] = new CE(this, "Principal Language Of Message");
     data[19] = new ID("Alternate Character Set Handling Scheme");
     data[20] = new EI(this, "Message Profile Identifier");
 }
Пример #5
0
 public VID(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[3];
     data[0] = new ID("Version ID");
     data[1] = new CE(this, "Internationalization Code");
     data[2] = new CE(this, "International Version ID");
 }
Пример #6
0
 public MSG(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[3];
     data[0] = new ID("Message Type");
     data[1] = new ID("Trigger Event");
     data[2] = new ID("Message Structure");
 }
Пример #7
0
 public DLN(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[3];
     data[0] = new ST("Driver'S License Number");
     data[1] = new IS("Issuing State, Province, Country");
     data[2] = new DT("Expiration Date");
 }
Пример #8
0
 public PID(compositeType parent, string name) : base(null, "PID")
 {
     data     = new abstractType[30];
     data[0]  = new SI("Set ID - PID");
     data[1]  = new CX(this, "Patient ID");
     data[2]  = new CX(this, "Patient Identifier List");
     data[3]  = new CX(this, "Alternate Patient ID - PID");
     data[4]  = new XPN(this, "Patient Name");
     data[5]  = new XPN(this, "Mother'S Maiden Name");
     data[6]  = new TS(this, "Date/Time Of Birth");
     data[7]  = new IS("Sex");
     data[8]  = new XPN(this, "Patient Alias");
     data[9]  = new CE(this, "Race");
     data[10] = new XAD(this, "Patient Address");
     data[11] = new IS("County Code");
     data[12] = new XTN(this, "Phone Number - Home");
     data[13] = new XTN(this, "Phone Number - Business");
     data[14] = new CE(this, "Primary Language");
     data[15] = new CE(this, "Marital Status");
     data[16] = new CE(this, "Religion");
     data[17] = new CX(this, "Patient Account Number");
     data[18] = new ST("SSN Number - Patient");
     data[19] = new DLN(this, "Driver'S License Number - Patient");
     data[20] = new CX(this, "Mother'S Identifier");
     data[21] = new CE(this, "Ethnic Group");
     data[22] = new ST("Birth Place");
     data[23] = new ID("Multiple Birth Indicator");
     data[24] = new NM("Birth Order");
     data[25] = new CE(this, "Citizenship");
     data[26] = new CE(this, "Veterans Military Status");
     data[27] = new CE(this, "Nationality");
     data[28] = new TS(this, "Patient Death Date And Time");
     data[29] = new ID("Patient Death Indicator");
 }
Пример #9
0
 public ELD(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[4];
     data[0] = new ST("Segment ID");
     data[1] = new NM("Segment Sequence");
     data[2] = new NM("Field Position");
     data[3] = new CE(this, "Code Identifying Error");
 }
Пример #10
0
 public A03(compositeType parent, string name) : base(null, "A03")
 {
     data    = new abstractType[4];
     data[0] = new MSH(this, "Message Header");
     data[1] = new EVN(this, "Event Type");
     data[2] = new PID(this, "Patient Identification ");
     data[3] = new PV1(this, "Patient Visit");
 }
Пример #11
0
 public EI(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[4];
     data[0] = new ST("Entity Identifier");
     data[1] = new IS("Namespace ID");
     data[2] = new ST("Universal ID");
     data[3] = new ID("Universal ID Type");
 }
Пример #12
0
 public CX(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[5];
     data[0] = new ST("ID");
     data[1] = new ID("Code Identifying The Check Digit Scheme Employed");
     data[2] = new HD(this, "Assigning Authority");
     data[3] = new IS("Identifier Type Code");
     data[4] = new HD(this, "Assigning Facility");
 }
Пример #13
0
 public CE(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[6];
     data[0] = new ST("Identifier");
     data[1] = new ST("Text");
     data[2] = new ST("Name Of Coding System");
     data[3] = new ST("Alternate Identifier");
     data[4] = new ST("Alternate Text");
     data[5] = new ST("Name Of Alternate Coding System");
 }
Пример #14
0
 public MSA(compositeType parent, string name) : base(parent, "MSA")
 {
     data    = new abstractType[6];
     data[0] = new ID("Acknowledgment Code");
     data[1] = new ST("Message Control ID");
     data[2] = new ST("Text Message");
     data[3] = new NM("Expected Sequence Number");
     data[4] = new ID("Delayed Acknowledgment Type");
     data[5] = new CE(this, "Error Condition");
 }
Пример #15
0
 public EVN(compositeType parent, string name) : base(parent, "EVN")
 {
     data    = new abstractType[6];
     data[0] = new ID("Event Type Code");
     data[1] = new TS(this, "Recorded Date/Time");
     data[2] = new TS(this, "Date/Time Planned Event");
     data[3] = new IS("Event Reason Code");
     data[4] = new XCN(this, "Operator ID");
     data[5] = new TS(this, "Event Occurred");
 }
Пример #16
0
 public ERL(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[6];
     data[0] = new ST("Segment ID");
     data[1] = new NM("Segment Sequence");
     data[2] = new NM("Field Position");
     data[3] = new NM("Field Repeition");
     data[4] = new NM("Component Number");
     data[5] = new NM("Sub-Component Number");
 }
Пример #17
0
 public PV1(compositeType parent, string name) : base(parent, "PV1")
 {
     data     = new abstractType[51];
     data[0]  = new SI("Set ID - PV1");
     data[1]  = new IS("Patient Class");
     data[2]  = new PL(this, "Assigned Patient Location");
     data[3]  = new IS("Admission Type");
     data[4]  = new CX(this, "Preadmit Number");
     data[5]  = new PL(this, "Prior Patient Location");
     data[6]  = new XCN(this, "Attending Doctor");
     data[7]  = new XCN(this, "Referring Doctor");
     data[8]  = new XCN(this, "Consulting Doctor");
     data[9]  = new IS("Hospital Service");
     data[10] = new PL(this, "Temporary Location");
     data[11] = new IS("Preadmit Test Indicator");
     data[12] = new IS("Re-Admission Indicator");
     data[13] = new IS("Admit Source");
     data[14] = new IS("Ambulatory Status");
     data[15] = new IS("VIP Indicator");
     data[16] = new XCN(this, "Admitting Doctor");
     data[17] = new IS("Patient Type");
     data[18] = new CX(this, "Visit Number");
     data[19] = new FC(this, "Financial Class");
     data[20] = new IS("Charge Price Indicator");
     data[21] = new IS("Courtesy Code");
     data[22] = new IS("Credit Rating");
     data[23] = new IS("Contract Code");
     data[24] = new DT("Contract Effective Date");
     data[25] = new NM("Contract Amount");
     data[26] = new NM("Contract Period");
     data[27] = new IS("Interest Code");
     data[28] = new IS("Transfer To Bad Debt Code");
     data[29] = new DT("Transfer To Bad Debt Date");
     data[30] = new IS("Bad Debt Agency Code");
     data[31] = new NM("Bad Debt Transfer Amount");
     data[32] = new NM("Bad Debt Recovery Amount");
     data[33] = new IS("Delete Account Indicator");
     data[34] = new DT("Delete Account Date");
     data[35] = new IS("Discharge Disposition");
     data[36] = new CE(this, "Diet Type");
     data[37] = new IS("Servicing Facility");
     data[38] = new IS("Bed Status");
     data[39] = new IS("Account Status");
     data[40] = new PL(this, "Pending Location");
     data[41] = new PL(this, "Prior Temporary Location");
     data[42] = new TS(this, "Admit Date/Time");
     data[43] = new TS(this, "Discharge Date/Time");
     data[44] = new NM("Current Patient Balance");
     data[45] = new NM("Total Charges");
     data[46] = new NM("Total Adjustments");
     data[47] = new NM("Total Payments");
     data[48] = new CX(this, "Alternate Visit ID");
     data[49] = new IS("Visit Indicator");
     data[50] = new XCN(this, "Other Healthcare Provider");
 }
Пример #18
0
 public XPN(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[8];
     data[0] = new CM("Family+Last Name Prefix");
     data[1] = new ST("Given Name");
     data[2] = new ST("Middle Initial Or Name");
     data[3] = new ST("Suffix (E.G., JR Or III)");
     data[4] = new ST("Prefix (E.G., DR)");
     data[5] = new IS("Degree (E.G., MD)");
     data[6] = new ID("Name Type Code");
     data[7] = new ID("Name Representation Code");
 }
Пример #19
0
 public PL(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[9];
     data[0] = new IS("Point Of Care");
     data[1] = new IS("Room");
     data[2] = new IS("Bed");
     data[3] = new HD(this, "Facility (HD)");
     data[4] = new IS("Location Status");
     data[5] = new IS("Person Location Type");
     data[6] = new IS("Building");
     data[7] = new IS("Floor");
     data[8] = new ST("Location Description");
 }
Пример #20
0
 public CWE(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[9];
     data[0] = new ST("Identifier");
     data[1] = new ST("Text");
     data[2] = new ID("Name Of Coding System");
     data[3] = new ST("Alternate Identifier");
     data[4] = new ST("Alternate Text");
     data[5] = new ID("Name Of Alternate Coding System");
     data[6] = new ST("Coding System Version ID");
     data[7] = new ST("Alternate Coding System Version ID");
     data[8] = new ST("Original Text");
 }
Пример #21
0
 public XON(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[9];
     data[0] = new ST("Organization Name");
     data[1] = new IS("Organization Name Type Code");
     data[2] = new NM("ID Number (NM)");
     data[3] = new NM("Check Digit");
     data[4] = new ID("Code Identifying The Check Digit Scheme Employed");
     data[5] = new HD(this, "Assigning Authority");
     data[6] = new IS("Identifier Type Code");
     data[7] = new HD(this, "Assigning Facility ID");
     data[8] = new ID("Name Representation Code");
 }
Пример #22
0
 public XAD(compositeType parent, string name) : base(parent, name)
 {
     data     = new abstractType[11];
     data[0]  = new ST("Street Address");
     data[1]  = new ST("Other Designation");
     data[2]  = new ST("City");
     data[3]  = new ST("State Or Province");
     data[4]  = new ST("Zip Or Postal Code");
     data[5]  = new ID("Country");
     data[6]  = new ID("Address Type");
     data[7]  = new ST("Other Geographic Designation");
     data[8]  = new IS("County/Parish Code");
     data[9]  = new IS("Census Tract");
     data[10] = new ID("Address Representation Code");
 }
Пример #23
0
 public XTN(compositeType parent, string name) : base(parent, name)
 {
     data     = new abstractType[12];
     data[0]  = new ST("Telephone Number");
     data[1]  = new ID("Telecommunication Use Code");
     data[2]  = new ID("Telecommunication Equipment Type");
     data[3]  = new ST("Email Address");
     data[4]  = new NM("Country Code");
     data[5]  = new NM("Area/City Code");
     data[6]  = new NM("Local Number");
     data[7]  = new NM("Extension");
     data[8]  = new ST("Any Text");
     data[9]  = new ST("Extension Prefix");
     data[10] = new ST("Speed Dial Code");
     data[11] = new ST("Unformatted Telephone Number");
 }
Пример #24
0
 public PD1(compositeType parent, string name) : base(null, "PD1")
 {
     data     = new abstractType[12];
     data[0]  = new IS("Living Dependency");
     data[1]  = new IS("Living Arrangement");
     data[2]  = new XON(this, "Patient Primary Facility");
     data[3]  = new XCN(this, "Patient Primary Care Provider Name & ID No.");
     data[4]  = new IS("Student Indicator");
     data[5]  = new IS("Handicap");
     data[6]  = new IS("Living Will");
     data[7]  = new IS("Organ Donor");
     data[8]  = new ID("Separate Bill");
     data[9]  = new CX(this, "Duplicate Patient");
     data[10] = new CE(this, "Publicity Code");
     data[11] = new ID("Protection Indicator");
 }
Пример #25
0
 public ERR(compositeType parent, string name) : base(parent, "ERR")
 {
     data     = new abstractType[12];
     data[0]  = new ELD(this, "Error Code And Location");
     data[1]  = new ERL(this, "Error Location");
     data[2]  = new CWE(this, "HL7 Error Code");
     data[3]  = new ID("Severity");
     data[4]  = new CWE(this, "Application Error Code");
     data[5]  = new ST("Application Error Parameter");
     data[6]  = new TX("Diagnostic Information");
     data[7]  = new TX("User Message");
     data[8]  = new IS("Inform Person Indicator");
     data[9]  = new CWE(this, "Override Type");
     data[10] = new CWE(this, "Override Reason Code");
     data[11] = new XTN(this, "Help Desk Contact Point");
 }
Пример #26
0
        public enum enumMessages { ACK, A01, A02 }      //状态枚举声明
        public override abstractType Create(compositeType parent, Enum product, string name)
        {
            switch ((enumMessages)product)
            {
            case enumMessages.ACK:
                a = new ACK(null, "ACK");
                break;

            case enumMessages.A01:
                a = new A01(null, "A01");
                break;

            case enumMessages.A02:
                a = new A01(null, "A02");
                break;
            }
            return(a);
        }
Пример #27
0
 public XCN(compositeType parent, string name) : base(parent, name)
 {
     data     = new abstractType[15];
     data[0]  = new ST("ID Number (ST)");
     data[1]  = new CM("Family+Last Name Prefix");
     data[2]  = new ST("Given Name");
     data[3]  = new ST("Middle Initial Or Name");
     data[4]  = new ST("Suffix (E.G., JR Or III)");
     data[5]  = new ST("Prefix (E.G., DR)");
     data[6]  = new IS("Degree (E.G., MD)");
     data[7]  = new IS("Source Table");
     data[8]  = new HD(this, "Assigning Authority");
     data[9]  = new ID("Name Type Code");
     data[10] = new ST("Identifier Check Digit");
     data[11] = new ID("Code Identifying The Check Digit Scheme Employed");
     data[12] = new IS("Identifier Type Code");
     data[13] = new HD(this, "Assigning Facility");
     data[14] = new ID("Name Representation Code");
 }
Пример #28
0
        public enum enumPrimiteve { ID, IS, ST, NM, DT, TM, TN, TX, FT, TS, SI, CM };      //状态枚举声明
        public override abstractType Create(compositeType parent, Enum product, string name)
        {
            switch ((enumPrimiteve)product)
            {
            case enumPrimiteve.ID:
                a = new ID(name);
                break;

            case enumPrimiteve.IS:
                a = new IS(name);
                break;

            case enumPrimiteve.ST:
                a = new ST(name);
                break;
            }

            return(a);
        }
Пример #29
0
        public enum enumFields { HD, PT, EI, CE, VID, MSG, ELD, ERL, CWE, XTN, XCN, CX, XPN, XAD, DLN, XON, PL, FC };      //状态枚举声明
        public override abstractType Create(compositeType parent, Enum product, string name)
        {
            switch ((enumFields)product)
            {
            case enumFields.HD:
                a = new HD(parent, name);
                break;

            case enumFields.PT:
                a = new PT(parent, name);
                break;

            case enumFields.EI:
                a = new EI(parent, name);
                break;

            case enumFields.CE:
                a = new CE(parent, name);
                break;

            case enumFields.VID:
                a = new VID(parent, name);
                break;

            case enumFields.MSG:
                a = new MSG(parent, name);
                break;

            case enumFields.ELD:
                a = new ELD(parent, name);
                break;

            case enumFields.ERL:
                a = new ERL(parent, name);
                break;

            case enumFields.CWE:
                a = new CWE(parent, name);
                break;

            case enumFields.XTN:
                a = new XTN(parent, name);
                break;

            case enumFields.XCN:
                a = new XCN(parent, name);
                break;

            case enumFields.CX:
                a = new CX(parent, name);
                break;

            case enumFields.XPN:
                a = new XPN(parent, name);
                break;

            case enumFields.XAD:
                a = new XAD(parent, name);
                break;

            case enumFields.DLN:
                a = new DLN(parent, name);
                break;

            case enumFields.XON:
                a = new XON(parent, name);
                break;

            case enumFields.PL:
                a = new PL(parent, name);
                break;

            case enumFields.FC:
                a = new FC(parent, name);
                break;

            default:
                a = factory.Create(parent, product, name);
                break;
            }
            return(a);
        }
Пример #30
0
 public FC(compositeType parent, string name) : base(parent, name)
 {
     data    = new abstractType[2];
     data[0] = new IS("Financial Class");
     data[1] = new TS(this, "Effective Date");
 }