using Gdsi.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Gdsi.Model
{
///
/// 入院信息变更入参
///
public class Api2403Request
{
#region 固定报文
///
///
///
public string infno { get { return "2403"; } }
///
///
///
public string msgid { get { return GdsiConfig.fixmedins_code + DateTime.Now.ToString("yyyyMMddHHmmss") + new Random().Next(1, 10000).ToString().PadLeft(4, '0'); } }
///
///
///
public string mdtrtarea_admvs { get { return GdsiConfig.city_code; } }
///
///
///
public string insuplc_admdvs { get { return GdsiConfig.city_code; } }
///
///
///
public string recer_sys_code { get { return "FD0001"; } }
///
///
///
public string dev_no { get { return ""; } }
///
///
///
public string dev_safe_info { get { return ""; } }
///
///
///
public string cainfo { get { return ""; } }
///
///
///
public string signtype { get { return "SM3"; } }
///
///
///
public string infver { get { return "V1.0"; } }
///
///
///
public string opter_type { get { return "2"; } }
///
///
///
public string opter { get { return GdsiConfig.opter; } }
///
///
///
public string opter_name { get { return GdsiConfig.opter_name; } }
///
///
///
public string inf_time { get { return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); } }
///
///
///
public string fixmedins_name { get { return GdsiConfig.fixmedins_name; } }
///
///
///
public string fixmedins_code { get { return GdsiConfig.fixmedins_code; } }
///
///
///
public string sign_no { get; set; }
#endregion
///
///
///
public Input input { get; set; }
public class Input
{
///
///
///
public Adminfo adminfo { get; set; }
///
///
///
public List diseinfo { get; set; }
///
///
///
public class Adminfo
{
///
/// 孕周数
///
public string geso_val { get; set; }
///
/// 联系电话
///
public string tel { get; set; }
///
/// 入院床位
///
public string adm_bed { get; set; }
///
/// 计划生育服务证号
///
public string fpsc_no { get; set; }
///
/// 联系人姓名
///
public string coner_name { get; set; }
///
/// 就诊ID
///
public string mdtrt_id { get; set; }
///
/// 入院科室名称
///
public string adm_dept_name { get; set; }
///
///
///
public string adm_dept_codg { get; set; }
///
/// 人员编号
///
public string psn_no { get; set; }
///
/// 主要病情描述
///
public string main_cond_dscr { get; set; }
///
/// 住院/门诊号
///
public string ipt_otp_no { get; set; }
///
/// 病历号
///
public string medrcdno { get; set; }
///
/// 胎儿数
///
public string fetus_cnt { get; set; }
///
/// 主治医生编码
///
public string atddr_no { get; set; }
///
/// 早产标志
///
public string pret_flag { get; set; }
///
/// 医疗类别
///
public string med_type { get; set; }
///
/// 住院主诊断名称
///
public string dscg_maindiag_name { get; set; }
///
/// 住院主诊断代码
///
public string dscg_maindiag_code { get; set; }
///
/// 胎次
///
public string fetts { get; set; }
///
/// 晚育标志
///
public string latechb_flag { get; set; }
///
/// 病种名称
///
public string dise_name { get; set; }
///
/// 病种编码
///
public string dise_codg { get; set; }
///
/// 结束时间
///
public string endtime { get; set; }
///
/// 手术操作名称
///
public string oprn_oprt_name { get; set; }
///
/// 手术操作代码
///
public string oprn_oprt_code { get; set; }
///
/// 入院诊断描述
///
public string adm_diag_dscr { get; set; }
///
/// 计划生育手术类别
///
public string birctrl_type { get; set; }
///
/// 就诊凭证类型
///
public string mdtrt_cert_type { get; set; }
///
/// 计划生育手术或生育日期
///
public string birctrl_matn_date { get; set; }
///
/// 生育类别
///
public string matn_type { get; set; }
///
/// 开始时间
///
public string begntime { get; set; }
///
/// 主诊医师姓名
///
public string chfpdr_name { get; set; }
}
public class Diseinfo
{
///
/// 诊断医生编码
///
public string dise_dor_no { get; set; }
///
/// 诊断类别
///
public string diag_type { get; set; }
///
/// 诊断时间
///
public string diag_time { get; set; }
///
/// 诊断名称
///
public string diag_name { get; set; }
///
/// 诊断科室
///
public string diag_dept { get; set; }
///
/// 诊断代码
///
public string diag_code { get; set; }
///
/// 入院病情
///
public string adm_cond { get; set; }
///
/// 就诊ID
///
public string mdtrt_id { get; set; }
///
/// 人员编号
///
public string psn_no { get; set; }
///
/// 主诊断标志
///
public string maindiag_flag { get; set; }
///
/// 诊断医生姓名
///
public string dise_dor_name { get; set; }
///
///
///
public string diag_srt_no { get; set; }
}
}
}
}