Class User.BSDRGPatientPayInfo Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_DRGPatientPayInfo ]
{

Parameter %JSONREFERENCE = "ID";

/// ҽID 
Property MdtrtId As %String(COLLATION = "UPPER", MAXLEN = 50) [ Required, SqlColumnNumber = 2, SqlFieldName = MdtrtId ];

Index MdtrtId On MdtrtId;

/// ҽˮ 
Property MdtrtSn As %String(COLLATION = "UPPER", MAXLEN = 50) [ SqlColumnNumber = 3, SqlFieldName = MdtrtSn ];

/// ID 
Property SetlId As %String(COLLATION = "UPPER", MAXLEN = 50) [ Required, SqlColumnNumber = 4, SqlFieldName = SetlId ];

Index SetlId On SetlId;

/// ֧ 
Property FundPayType As %String [ Required, SqlColumnNumber = 5, SqlFieldName = FundPayType ];

Index FundPayType On FundPayType;

Index PayInfoIndex On (MdtrtId, SetlId, FundPayType);

/// ֧ 
Property FundPayAmt As %String [ Required, SqlColumnNumber = 6, SqlFieldName = FundPayAmt ];

/// HISˮ 
Property HISAdmID As %String [ Required, SqlColumnNumber = 7, SqlFieldName = HISAdmID ];

/// ݸʱ
Property UpdateTime As %DateTime [ SqlColumnNumber = 8, SqlFieldName = UpdateTime ];

Storage Default
{
<Data name="BSDRGPatientPayInfoDefaultData">
<Value name="1">
<Value>%%CLASSNAME</Value>
</Value>
<Value name="2">
<Value>MdtrtId</Value>
</Value>
<Value name="3">
<Value>MdtrtSn</Value>
</Value>
<Value name="4">
<Value>SetlId</Value>
</Value>
<Value name="5">
<Value>FundPayType</Value>
</Value>
<Value name="6">
<Value>FundPayAmt</Value>
</Value>
<Value name="7">
<Value>HISAdmID</Value>
</Value>
<Value name="8">
<Value>UpdateTime</Value>
</Value>
</Data>
<DataLocation>^BSDRGPatientPayInfoD</DataLocation>
<DefaultData>BSDRGPatientPayInfoDefaultData</DefaultData>
<IdLocation>^BSDRGPatientPayInfoD</IdLocation>
<IndexLocation>^BSDRGPatientPayInfoI</IndexLocation>
<StreamLocation>^BSDRGPatientPayInfoS</StreamLocation>
<Type>%Storage.Persistent</Type>
}

}
