这是我正在做的事情的非抽象。完美运行。我已经为 HIPPA 排除了一切。
DECLARE @CLAIMID VARCHAR(MAX) = 'SOMECLAIMID'
DECLARE @CoreClaimTotalPaid MONEY
DECLARE @ClaimTotalAmt MONEY
DECLARE @MemID CHAR(15)
DECLARE @CLMStartDate DATETIME
DECLARE @CLMEndDate DATETIME
DECLARE @MonthlyCostShareID INT
DECLARE @MonthlyCostShareIDRollback INT
DECLARE @MonthlyCostShareAmt MONEY
DECLARE @MonthlyShareAmtUsed MONEY
DECLARE @MonthlyCostShareRateCode CHAR(2)
DECLARE @SOCBalance MONEY
DECLARE @CDTotalPaid MONEY
DECLARE @CDTotalSOC MONEY
DECLARE @PROC_USER CHAR(15)
DECLARE @CostShareClaimID INT
DECLARE @AdjudicatedCostShareAmtApplied MONEY
DECLARE @PrevSOCAmt MONEY
DECLARE @totalpaid MONEY
DECLARE @Message varchar(200)
DECLARE @getdate DATETIME
DECLARE @IHCMFPcutoff SMALLDATETIME
SELECT @CLAIMID ClaimID,@CoreClaimTotalPaid CoreClaimTotalPaid,@ClaimTotalAmt ClaimTotalAmt,@MemID MemID,@CLMStartDate CLMStartDate,@CLMEndDate CLMEndDate,
@MonthlyCostShareID MonthlyCostShareID,@MonthlyCostShareIDRollback MonthlyCostShareIDRollback,@MonthlyCostShareAmt MonthlyCostShareAmt,
@MonthlyShareAmtUsed MonthlyShareAmtUsed,@MonthlyCostShareRateCode MonthlyCostShareRateCode,@SOCBalance SOCBalance,@CDTotalPaid CDTotalPaid,
@CDTotalSOC CDTotalSOC,@PROC_USER PROC_USER,@CostShareClaimID CostShareClaimID, @AdjudicatedCostShareAmtApplied AdjudicatedCostShareAmtApplied,
@PrevSOCAmt PrevSOCAmt,@totalpaid totalpaid,@Message [Message],@getdate [getdate],@IHCMFPcutoff IHCMFPcutoff
FOR XML PATH('VAR'), ROOT('TESTTABLE'), ELEMENTS XSINIL
和 XML:
<TESTTABLE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<VAR>
<ClaimID>SOMECLAIMID</ClaimID>
<CoreClaimTotalPaid xsi:nil="true" />
<ClaimTotalAmt xsi:nil="true" />
<MemID xsi:nil="true" />
<CLMStartDate xsi:nil="true" />
<CLMEndDate xsi:nil="true" />
<MonthlyCostShareID xsi:nil="true" />
<MonthlyCostShareIDRollback xsi:nil="true" />
<MonthlyCostShareAmt xsi:nil="true" />
<MonthlyShareAmtUsed xsi:nil="true" />
<MonthlyCostShareRateCode xsi:nil="true" />
<SOCBalance xsi:nil="true" />
<CDTotalPaid xsi:nil="true" />
<CDTotalSOC xsi:nil="true" />
<PROC_USER xsi:nil="true" />
<CostShareClaimID xsi:nil="true" />
<AdjudicatedCostShareAmtApplied xsi:nil="true" />
<PrevSOCAmt xsi:nil="true" />
<totalpaid xsi:nil="true" />
<Message xsi:nil="true" />
<getdate xsi:nil="true" />
<IHCMFPcutoff xsi:nil="true" />
</VAR>
</TESTTABLE>