Пример #1
0
        public GetMedicalRecordResult GetMedicalRecord(string sessionId, int patientId)
        {
            const string MethodName = "GetMedicalRecord";

            object[] parameters = new object[]
            {
                sessionId,
                patientId,
            };

            GetMedicalRecordResult result = InvokeMethodWithSingleXmlResult <GetMedicalRecordResult>(MethodName, parameters);

            if (result.IsError)
            {
                throw CreatePartnerApiException(MethodName, result);
            }

            return(result);
        }
Пример #2
0
        private string GetPatientRecord(int patientId)
        {
            GetMedicalRecordResult result = _emisInterface.GetMedicalRecord(_sessionId, patientId);

            return(result.ResultXml);
        }