You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
426 lines
13 KiB
426 lines
13 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace Shentun.Peis.PlugIns.Extensions.LisRequests.YinHai.Dto
|
|
{
|
|
/// <summary>
|
|
/// 请求明细项
|
|
/// </summary>
|
|
[XmlRoot("detail")]
|
|
public class LisRequestCallBodyDataDetailDto
|
|
{
|
|
[XmlElement("request_no")]
|
|
public string RequestNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("patient_type")]
|
|
public string PatientType { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 条码号+对照编码
|
|
/// </summary>
|
|
[XmlElement("item_serial_no")]
|
|
public string ItemSerialNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("org_code")]
|
|
public string OrgCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("system_source")]
|
|
public string SystemSource { get; set; } = string.Empty;
|
|
|
|
//[XmlElement("hos_id")]
|
|
//public string HosId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("org_name")]
|
|
public string OrgName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("patient_id")]
|
|
public string PatientId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("visit_id")]
|
|
public string VisitId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("order_id")]
|
|
public string OrderId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("item_id")]
|
|
public string ItemId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("item_code")]
|
|
public string ItemCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("item_name")]
|
|
public string ItemName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("cost")]
|
|
public string Cost { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sampler_id")]
|
|
public string SamplerId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sampler")]
|
|
public string Sampler { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sample_date")]
|
|
public string SampleDate { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sender_id")]
|
|
public string SenderId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sender")]
|
|
public string Sender { get; set; } = string.Empty;
|
|
|
|
[XmlElement("send_date")]
|
|
public string SendDate { get; set; } = string.Empty;
|
|
|
|
[XmlElement("cancel_flag")]
|
|
public string CancelFlag { get; set; } = string.Empty;
|
|
|
|
[XmlElement("exec_flag")]
|
|
public string ExecFlag { get; set; } = string.Empty;
|
|
|
|
[XmlElement("is_emergency")]
|
|
public string IsEmergency { get; set; } = string.Empty;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 请求明细列表
|
|
/// </summary>
|
|
[XmlRoot("request_details")]
|
|
public class LisRequestCallBodyDataDetailsDto
|
|
{
|
|
[XmlElement("detail")]
|
|
public List<LisRequestCallBodyDataDetailDto> Details { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 主请求信息
|
|
/// </summary>
|
|
[XmlRoot("request")]
|
|
public class LisRequestCallBodyDataRequestDto
|
|
{
|
|
[XmlElement("request_no")]
|
|
public string RequestNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("patient_type")]
|
|
public string PatientType { get; set; } = string.Empty;
|
|
|
|
[XmlElement("org_code")]
|
|
public string OrgCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("system_source")]
|
|
public string SystemSource { get; set; } = string.Empty;
|
|
|
|
//[XmlElement("hos_id")]
|
|
//public string HosId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("org_name")]
|
|
public string OrgName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("visit_id")]
|
|
public string VisitId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("visit_no")]
|
|
public string VisitNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("patient_id")]
|
|
public string PatientId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("patient_no")]
|
|
public string PatientNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("is_baby")]
|
|
public string IsBaby { get; set; } = string.Empty;
|
|
|
|
[XmlElement("patient_name")]
|
|
public string PatientName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("gender_code")]
|
|
public string GenderCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("age")]
|
|
public string Age { get; set; } = string.Empty;
|
|
|
|
[XmlElement("age_unit")]
|
|
public string AgeUnit { get; set; } = string.Empty;
|
|
|
|
[XmlElement("med_card_no")]
|
|
public string MedCardNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("id_card")]
|
|
public string IdCard { get; set; } = string.Empty;
|
|
|
|
[XmlElement("health_card_no")]
|
|
public string HealthCardNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("health_file_no")]
|
|
public string HealthFileNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("purpose")]
|
|
public string Purpose { get; set; } = string.Empty;
|
|
|
|
[XmlElement("telphone")]
|
|
public string Telephone { get; set; } = string.Empty;
|
|
|
|
[XmlElement("present_address")]
|
|
public string PresentAddress { get; set; } = string.Empty;
|
|
|
|
[XmlElement("nation_code")]
|
|
public string NationCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("nation_name")]
|
|
public string NationName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("nationality_code")]
|
|
public string NationalityCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("nationality_name")]
|
|
public string NationalityName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("marriage_code")]
|
|
public string MarriageCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("present_history")]
|
|
public string PresentHistory { get; set; } = string.Empty;
|
|
|
|
[XmlElement("complanit")]
|
|
public string Complanit { get; set; } = string.Empty;
|
|
|
|
[XmlElement("symptoms_info")]
|
|
public string SymptomsInfo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("diag_code")]
|
|
public string DiagCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("diag_name")]
|
|
public string DiagName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("request_code")]
|
|
public string RequestCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("requester")]
|
|
public string Requester { get; set; } = string.Empty;
|
|
|
|
[XmlElement("request_dept_code")]
|
|
public string RequestDeptCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("request_dept_name")]
|
|
public string RequestDeptName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("request_date")]
|
|
public string RequestDate { get; set; } = string.Empty;
|
|
|
|
[XmlElement("ward_code")]
|
|
public string WardCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("ward_name")]
|
|
public string WardName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("room_no")]
|
|
public string RoomNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("bed_no")]
|
|
public string BedNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("dept_code")]
|
|
public string DeptCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("dept_name")]
|
|
public string DeptName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 是否紧急 0-不紧急 1-紧急
|
|
/// </summary>
|
|
[XmlElement("is_emergency")]
|
|
public string IsEmergency { get; set; } = string.Empty;
|
|
|
|
[XmlElement("birthday")]
|
|
public string Birthday { get; set; } = string.Empty;
|
|
|
|
[XmlElement("visit_count")]
|
|
public string VisitCount { get; set; } = string.Empty;
|
|
|
|
[XmlElement("maxitem_id")]
|
|
public string MaxItemId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("maxitem_code")]
|
|
public string MaxItemCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("maxitem_name")]
|
|
public string MaxItemName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 是否收费 0-未收费 1-收费
|
|
/// </summary>
|
|
[XmlElement("pay_flag")]
|
|
public string PayFlag { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 体检价格
|
|
/// </summary>
|
|
[XmlElement("sum_cost")]
|
|
public string SumCost { get; set; } = string.Empty;
|
|
|
|
[XmlElement("specimen_type_id")]
|
|
public string SpecimenTypeId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("specimen_no")]
|
|
public string SpecimenNo { get; set; } = string.Empty;
|
|
|
|
[XmlElement("specimen_type")]
|
|
public string SpecimenType { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 条码号
|
|
/// </summary>
|
|
[XmlElement("specimen_bar_no")]
|
|
public string SpecimenBarNo { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 标本试管颜色
|
|
/// </summary>
|
|
[XmlElement("speciment_tube_color")]
|
|
public string SpecimentTubeColor { get; set; } = string.Empty;
|
|
|
|
//[XmlElement("speciment_tube_code")]
|
|
//public string SpecimentTubeCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("specimen_flag")]
|
|
public string SpecimenFlag { get; set; } = string.Empty;
|
|
|
|
[XmlElement("specimen_pixative_name")]
|
|
public string SpecimenPixativeName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("bar_code_build_date")]
|
|
public string BarCodeBuildDate { get; set; } = string.Empty;
|
|
|
|
[XmlElement("exec_dept_code")]
|
|
public string ExecDeptCode { get; set; } = string.Empty;
|
|
|
|
[XmlElement("exec_dept_name")]
|
|
public string ExecDeptName { get; set; } = string.Empty;
|
|
|
|
[XmlElement("cancel_flag")]
|
|
public string CancelFlag { get; set; } = string.Empty;
|
|
|
|
[XmlElement("exec_flag")]
|
|
public string ExecFlag { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sampler_id")]
|
|
public string SamplerId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sampler")]
|
|
public string Sampler { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sample_date")]
|
|
public string SampleDate { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sender_id")]
|
|
public string SenderId { get; set; } = string.Empty;
|
|
|
|
[XmlElement("sender")]
|
|
public string Sender { get; set; } = string.Empty;
|
|
|
|
[XmlElement("send_date")]
|
|
public string SendDate { get; set; } = string.Empty;
|
|
|
|
[XmlElement("plan_start_date")]
|
|
public string PlanStartDate { get; set; } = string.Empty;
|
|
|
|
[XmlElement("plan_end_date")]
|
|
public string PlanEndDate { get; set; } = string.Empty;
|
|
|
|
[XmlElement("print_flag")]
|
|
public string PrintFlag { get; set; } = string.Empty;
|
|
|
|
[XmlElement("print_count")]
|
|
public string PrintCount { get; set; } = string.Empty;
|
|
|
|
[XmlElement("gc_flag")]
|
|
public string GcFlag { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 0.非预约,1.预约
|
|
/// </summary>
|
|
[XmlElement("appointment_flag")]
|
|
public string AppointmentFlag { get; set; } = string.Empty;
|
|
|
|
[XmlElement("remark")]
|
|
public string Remark { get; set; } = string.Empty;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 数据部分
|
|
/// </summary>
|
|
[XmlRoot("data")]
|
|
public class LisRequestCallBodyDataDto
|
|
{
|
|
[XmlElement("request")]
|
|
public LisRequestCallBodyDataRequestDto Request { get; set; }
|
|
|
|
[XmlElement("request_details")]
|
|
public LisRequestCallBodyDataDetailsDto RequestDetails { get; set; }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 请求体
|
|
/// </summary>
|
|
[XmlRoot("body")]
|
|
public class LisRequestCallBodyDto
|
|
{
|
|
[XmlElement("data")]
|
|
public LisRequestCallBodyDataDto Data { get; set; }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 请求头信息
|
|
/// </summary>
|
|
[XmlRoot("head")]
|
|
public class LisRequestCallHeadDto
|
|
{
|
|
[XmlElement("version")]
|
|
public string Version { get; set; }
|
|
|
|
[XmlElement("timestamp")]
|
|
public string Timestamp { get; set; }
|
|
|
|
[XmlElement("sign")]
|
|
public string Sign { get; set; }
|
|
|
|
[XmlElement("request_id")]
|
|
public string RequestId { get; set; }
|
|
|
|
[XmlElement("source_system")]
|
|
public string SourceSystem { get; set; }
|
|
|
|
/// <summary>
|
|
/// lis pacs his
|
|
/// </summary>
|
|
[XmlElement("object_system")]
|
|
public string ObjectSystem { get; set; }
|
|
|
|
[XmlElement("action")]
|
|
public string Action { get; set; }
|
|
|
|
[XmlElement("code")]
|
|
public string Code { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 完整的请求XML根对象
|
|
/// </summary>
|
|
[XmlRoot("reqxml")]
|
|
public class LisRequestCallDto
|
|
{
|
|
[XmlElement("head")]
|
|
public LisRequestCallHeadDto Head { get; set; }
|
|
|
|
[XmlElement("body")]
|
|
public LisRequestCallBodyDto Body { get; set; }
|
|
}
|
|
}
|