Esempio n. 1
0
 /// <summary>
 /// 数据库交互
 /// </summary>
 public override void ProcessInfo()
 {
     try
     {
         using (var db = new DataBaser())
             result = Create <IAI_ORGANIZATION_MANAGER>(db).Insert(requestEntity);
     }
     catch (Exception ex)
     {
         message = ex.Message;
     }
 }
Esempio n. 2
0
 public PRPM_IN401031UV01(IAI_ORGANIZATION result, string requestId)
 {
     id = new IDwithRootExtendsion()
     {
         root      = "240CD76A-ED0E-400B-9FD3-60387BCDE0EB",
         extension = "3D73520B-D489-4B70-8F4B-7B5C2D7961B5",
     };
     creationTime = new Time
     {
         value = "20070803130624",
     };
     interactionId = new IDwithRootExtendsion()
     {
         root      = "2.16.840.1.113883.1.6",
         extension = "PRPM_IN401031UV01",
     };
     processingCode = new Code()
     {
         code = "P",
     };
     processingModeCode = new Code()
     {
         code = "I",
     };
     acceptAckCode = new Code()
     {
         code = "AL",
     };
     receiver = new SendReceiver()
     {
         typeCode = "RCV",
         device   = new Device()
         {
             classCode      = "DEV",
             determinerCode = "INSTANCE",
             id             = new IDwithRootExtendsion()
             {
                 root = "1.2.840.114350.1.13.999.234",
                 //extension = "2.16.156.10011.0.1.2",
             },
         },
     };
     sender = new SendReceiver()
     {
         typeCode = "SND",
         device   = new Device()
         {
             classCode      = "DEV",
             determinerCode = "INSTANCE",
             id             = new IDwithRootExtendsion()
             {
                 root = "1.2.840.114350.1.13.999.567",
                 //extension = "2.16.156.10011.0.1.1",
             },
         },
     };
     acknowledgement = new CommonAcknowledgement()
     {
         typeCode      = "AA",
         targetMessage = new CommonTargetMessage()
         {
             id = new IDwithRootExtendsion()
             {
                 root      = "040CD76A-ED0E-400B-9FD3-60387BCDE0EB",
                 extension = requestId,
             },
         },
         acknowledgementDetail = new CommonAcknowledgementDetail()
         {
             text = "处理成功",
         },
     };
     controlActProcess = new Response()
     {
         classCode = "CACT",
         moodCode  = "EVN",
         code      = new CodeSystem()
         {
             code       = "PRPM_TE401011UV01",
             codeSystem = "2.16.840.1.113883.1.6",
         },
         subject = new controlActProcessSubjectofResponse()
         {
             typeCode            = "SUBJ",
             registrationRequest = new RegistrationRequestofResponse()
             {
                 classCode  = "REG",
                 moodCode   = "RQO",
                 statusCode = new StatusCode()
                 {
                     code = "active",
                 },
                 subject1 = new Subject1ofResponse()
                 {
                     typeCode       = "SBJ",
                     assignedEntity = new AssignedEntityofResponse()
                     {
                         classCode = "ASSIGNED",
                         id        = new IDwithRootExtendsion()
                         {
                             root      = "2.16.156.10011.1.26",
                             extension = result.organization_id,
                         },
                         code = new CodeSystem()
                         {
                             code           = result.organization_code,
                             codeSystem     = "2.16.156.10011.2.3.2.62",
                             codeSystemName = "医疗卫生机构业务科室分类与代码表",
                             displayName    = "呼吸内科专业",
                         },
                         name = "",
                         assignedPrincipalOrganization = new AffiliatedPrincipalOrganization()
                         {
                             classCode      = "ORG",
                             determinerCode = "INSTANCE",
                             name           = result.name,
                         },
                     },
                 },
                 author = new Author()
                 {
                     typeCode       = "AUT",
                     assignedEntity = new Entity.AssignedEntity()
                     {
                         classCode = "ASSIGNED",
                         id        = new IDwithRootExtendsion()
                         {
                             root      = "2.16.156.10011.1.4",
                             extension = "120109197706015518",
                         },
                         assignedPerson = new Person()
                         {
                             classCode      = "PSN",
                             determinerCode = "INSTANCE",
                             name           = new Name()
                             {
                                 Value = "-"
                             },
                         },
                         representedOrganization = new RepresentedOrganization()
                         {
                             classCode      = "ORG",
                             determinerCode = "INSTANCE",
                             id             = new IDwithRootExtendsion()
                             {
                                 root      = "2.16.156.10011.1.26",
                                 extension = "xxx12345-X",
                             },
                             name         = "人事科",
                             contactParty = new ContactParty()
                             {
                                 classCode     = "CON",
                                 contactPerson = new Person()
                                 {
                                     classCode      = "PSN",
                                     determinerCode = "INSTANCE",
                                     name           = new Name()
                                     {
                                         Value = "-",
                                     },
                                 },
                             },
                         },
                     },
                 },
             },
         },
     };
 }
Esempio n. 3
0
 public PRPM_IN401031UV01(string message, IAI_ORGANIZATION result, string requestId)
 {
     id = new IDwithRootExtendsion()
     {
         root      = "240CD76A-ED0E-400B-9FD3-60387BCDE0EB",
         extension = "3D73520B-D489-4B70-8F4B-7B5C2D7961B5",
     };
     creationTime = new Time
     {
         value = "20070803130624",
     };
     interactionId = new IDwithRootExtendsion()
     {
         root      = "2.16.840.1.113883.1.6",
         extension = "PRPM_IN401031UV01",
     };
     processingCode = new Code()
     {
         code = "P",
     };
     processingModeCode = new Code()
     {
         code = "I",
     };
     acceptAckCode = new Code()
     {
         code = "AL",
     };
     receiver = new SendReceiver()
     {
         typeCode = "RCV",
         device   = new Device()
         {
             classCode      = "DEV",
             determinerCode = "INSTANCE",
             id             = new IDwithRootExtendsion()
             {
                 root = "1.2.840.114350.1.13.999.567",
                 //extension = "2.16.156.10011.0.1.2",
             },
         },
     };
     sender = new SendReceiver()
     {
         typeCode = "SND",
         device   = new Device()
         {
             classCode      = "DEV",
             determinerCode = "INSTANCE",
             id             = new IDwithRootExtendsion()
             {
                 root = "1.2.840.114350.1.13.999.234",
                 //extension = "2.16.156.10011.0.1.1",
             },
         },
     };
     acknowledgement = new CommonAcknowledgement()
     {
         typeCode      = "AE",
         targetMessage = new CommonTargetMessage()
         {
             id = new IDwithRootExtendsion()
             {
                 //root = "040CD76A-ED0E-400B-9FD3-60387BCDE0EB",
                 extension = requestId,
             },
         },
         acknowledgementDetail = new CommonAcknowledgementDetail()
         {
             text = message,
         },
     };
     controlActProcess = new Response()
     {
         classCode = "CACT",
         moodCode  = "EVN",
         code      = new CodeSystem()
         {
             code       = "PRPM_TE401011UV01",
             codeSystem = "2.16.840.1.113883.1.6",
         },
         subject = new controlActProcessSubjectofResponse()
         {
             typeCode            = "SUBJ",
             registrationRequest = new RegistrationRequestofResponse()
             {
                 classCode  = "REG",
                 moodCode   = "RQO",
                 statusCode = new StatusCode()
                 {
                     //code = "active",
                 },
                 subject1 = new Subject1ofResponse()
                 {
                     typeCode       = "SBJ",
                     assignedEntity = new AssignedEntityofResponse()
                     {
                         classCode = "ASSIGNED",
                     },
                 },
                 author = new Author()
                 {
                     typeCode       = "AUT",
                     assignedEntity = new Entity.AssignedEntity()
                     {
                         classCode = "ASSIGNED",
                         id        = new IDwithRootExtendsion()
                         {
                         },
                     },
                 },
             },
         },
     };
 }
Esempio n. 4
0
        public PRPM_IN406110UV01(string message, IAI_ORGANIZATION result, string requestId)
        {
            id = new IDwithRootExtendsion()
            {
                root      = "140CD76A-ED0E-400B-9FD3-60387BCDE0EB",
                extension = "8D73520B-D489-4B70-8F4B-7B5C2D7961B5",
            };
            creationTime = new Time
            {
                value = "20070803130624",
            };
            interactionId = new IDwithRootExtendsion()
            {
                root      = "2.16.840.1.113883.1.6",
                extension = "PRPM_IN406110UV01",
            };
            processingCode = new Code()
            {
                code = "P",
            };
            processingModeCode = new Code()
            {
                code = "I",
            };
            acceptAckCode = new Code()
            {
                code = "AL",
            };
            receiver = new SendReceiver()
            {
                typeCode = "RCV",
                device   = new Device()
                {
                    classCode      = "DEV",
                    determinerCode = "INSTANCE",
                    id             = new IDwithRootExtendsion()
                    {
                        root = "1.2.840.114350.1.13.999.234",
                        //extension = "2.16.156.10011.0.1.2",
                    },
                },
            };
            sender = new SendReceiver()
            {
                typeCode = "SND",
                device   = new Device()
                {
                    classCode      = "DEV",
                    determinerCode = "INSTANCE",
                    id             = new IDwithRootExtendsion()
                    {
                        root = "1.2.840.114350.1.13.999.567",
                        //extension = "2.16.156.10011.0.1.1",
                    },
                },
            };
            acknowledgement = new CommonAcknowledgement()
            {
                typeCode      = "AE",
                targetMessage = new CommonTargetMessage()
                {
                    id = new IDwithRootExtendsion()
                    {
                        root      = "140CD76A-ED0E-400B-9FD3-60387BCDE0EQ",
                        extension = requestId,
                    },
                },
                acknowledgementDetail = new CommonAcknowledgementDetail()
                {
                    text = message,
                },
            };
            controlActProcess = new Response()
            {
                classCode = "CACT",
                moodCode  = "EVN",
                code      = new CodeSystem()
                {
                    code       = "PRPM_TE406110UV01",
                    codeSystem = "2.16.840.1.113883.1.6",
                },
                subject = new controlActProcessSubject()
                {
                    typeCode          = "SUBJ",
                    registrationEvent = new controlActProcessSubjectRegistrationEvent()
                    {
                        classCode  = "REG",
                        moodCode   = "EVN",
                        statusCode = new StatusCode()
                        {
                            code = "active",
                        },
                        subject1 = new controlActProcessSubjectRegistrationEventSubject1()
                        {
                            typeCode       = "SBJ",
                            assignedEntity = new AssignedEntityofOrganization()
                            {
                                classCode = "ASSIGNED",
                                id        = new IDwithRootExtendsion()
                                {
                                    root      = "2.16.156.10011.1.26",
                                    extension = result?.organization_id,
                                },
                                code = new CodeSystem()
                                {
                                    code           = result?.organization_code,
                                    codeSystem     = "2.16.156.10011.2.3.2.62",
                                    codeSystemName = "医疗卫生机构业务科室分类与代码表",
                                    displayName    = "呼吸内科专业",
                                },
                                name    = "",
                                addr    = "",
                                telecom = new Telecom()
                                {
                                },
                                statusCode = new StatusCode()
                                {
                                    code = "active"
                                },
                                assignedPrincipalOrganization = new AssignedPrincipalOrganization()
                                {
                                    classCode      = "ORG",
                                    determinerCode = "INSTANCE",
                                    name           = result?.name
                                },
                            },
                        },
                        custodian = new Custodian()
                        {
                            typeCode       = "CST",
                            assignedEntity = new AssignedEntity()
                            {
                                classCode = "ASSIGNED",

                                id = new IDwithRootExtendsion()
                                {
                                    root      = "2.16.156.10011.1.4",
                                    extension = "120109197706015518",
                                },
                                assignedPerson = new Person()
                                {
                                    classCode      = "PSN",
                                    determinerCode = "INSTANCE",
                                    name           = new Name()
                                    {
                                        use   = "L",
                                        Value = "-",
                                    },
                                },
                                representedOrganization = new RepresentedOrganization()
                                {
                                    classCode      = "ORG",
                                    determinerCode = "INSTANCE",
                                    id             = new IDwithRootExtendsion()
                                    {
                                        root      = "2.16.156.10011.1.26",
                                        extension = "xxx12345-X",
                                    },
                                    name         = "人事科",
                                    contactParty = new ContactParty()
                                    {
                                        classCode     = "CON",
                                        contactPerson = new Person()
                                        {
                                            classCode      = "PSN",
                                            determinerCode = "INSTANCE",
                                            name           = new Name()
                                            {
                                                Value = "-",
                                            },
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
                queryAck = new QueryAck()
                {
                    queryResponseCode = new Code()
                    {
                        code = "OK"
                    },
                },
                queryByParameterPayload = new QueryByParameterPayload
                {
                    statusCode = new StatusCode
                    {
                        code = "new",
                    },
                    organizationID = new ValueSemanticsText <ValuewithRootExtension>
                    {
                        value = new ValuewithRootExtension
                        {
                            root      = "2.16.156.10011.1.26",
                            extension = result?.organization_id,
                        },
                        semanticsText = "AssignedEntity.id",
                    },
                    //organizationName = new ValueSemanticsText<string>
                    //{
                    //    value = result?.name,
                    //    //semanticsText = "PrincipalOrganization.name",
                    //},
                    status = new status
                    {
                        value = new statusValue
                        {
                            code = "active"
                        },
                    },
                },
            };
        }