VitalWare API

<back to all web services

MsdrgGroup

Groups code specific claim data
Parameters:
NameParameterData TypeRequiredDescription
rawRecordStatuspathstringNo
retainRawFilespathboolNo
codeDatapathMsdrgInputYesCode data containing patient information and diagnois and procedure code(s)

To override the Content-type in your clients, use the HTTP Accept Header, append the .soap11 suffix or ?format=soap11

HTTP + SOAP11

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap11 HTTP/1.1 
Host: api.vitalware.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: MsdrgGroup

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<MsdrgGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <codeData>
    <accountNumber>String</accountNumber>
    <admitCode>
      <code>String</code>
      <codeId>0</codeId>
      <codeType>String</codeType>
      <codeTypeId>0</codeTypeId>
    </admitCode>
    <admitDate>0001-01-01T00:00:00</admitDate>
    <codeSetPrefix>icd10</codeSetPrefix>
    <diagnoses>
      <MsdrgDiagnosis>
        <detail>
          <code>String</code>
          <codeId>0</codeId>
          <codeType>String</codeType>
          <codeTypeId>0</codeTypeId>
        </detail>
        <presentOnAdmission>String</presentOnAdmission>
      </MsdrgDiagnosis>
    </diagnoses>
    <dischargeDate>0001-01-01T00:00:00</dischargeDate>
    <dischargeStatusCode>String</dischargeStatusCode>
    <grouperLogicDirective>auto</grouperLogicDirective>
    <grouperLogicUsed>auto</grouperLogicUsed>
    <hacLogic>X</hacLogic>
    <lengthOfStay>0</lengthOfStay>
    <mpn>String</mpn>
    <mrn>String</mrn>
    <optionalInfo>String</optionalInfo>
    <patientAge>0</patientAge>
    <patientDob>0001-01-01T00:00:00</patientDob>
    <patientGender>0</patientGender>
    <patientName>String</patientName>
    <primaryPayerCode>String</primaryPayerCode>
    <procedures>
      <MsdrgProcedure>
        <detail>
          <code>String</code>
          <codeId>0</codeId>
          <codeType>String</codeType>
          <codeTypeId>0</codeTypeId>
        </detail>
        <procDate>0001-01-01T00:00:00</procDate>
      </MsdrgProcedure>
    </procedures>
  </codeData>
  <rawRecordStatus>hide</rawRecordStatus>
  <retainRawFiles>false</retainRawFiles>
</MsdrgGroup>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<MsdrgGroupResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
      </d2p1:ResponseError>
    </d2p1:Errors>
  </ResponseStatus>
  <inputRecords>
    <MsdrgRecord>
      <line>String</line>
    </MsdrgRecord>
  </inputRecords>
  <outputRecords>
    <MsdrgRecord>
      <line>String</line>
    </MsdrgRecord>
  </outputRecords>
  <request>
    <codeData>
      <accountNumber>String</accountNumber>
      <admitCode>
        <code>String</code>
        <codeId>0</codeId>
        <codeType>String</codeType>
        <codeTypeId>0</codeTypeId>
      </admitCode>
      <admitDate>0001-01-01T00:00:00</admitDate>
      <codeSetPrefix>icd10</codeSetPrefix>
      <diagnoses>
        <MsdrgDiagnosis>
          <detail>
            <code>String</code>
            <codeId>0</codeId>
            <codeType>String</codeType>
            <codeTypeId>0</codeTypeId>
          </detail>
          <presentOnAdmission>String</presentOnAdmission>
        </MsdrgDiagnosis>
      </diagnoses>
      <dischargeDate>0001-01-01T00:00:00</dischargeDate>
      <dischargeStatusCode>String</dischargeStatusCode>
      <grouperLogicDirective>auto</grouperLogicDirective>
      <grouperLogicUsed>auto</grouperLogicUsed>
      <hacLogic>X</hacLogic>
      <lengthOfStay>0</lengthOfStay>
      <mpn>String</mpn>
      <mrn>String</mrn>
      <optionalInfo>String</optionalInfo>
      <patientAge>0</patientAge>
      <patientDob>0001-01-01T00:00:00</patientDob>
      <patientGender>0</patientGender>
      <patientName>String</patientName>
      <primaryPayerCode>String</primaryPayerCode>
      <procedures>
        <MsdrgProcedure>
          <detail>
            <code>String</code>
            <codeId>0</codeId>
            <codeType>String</codeType>
            <codeTypeId>0</codeTypeId>
          </detail>
          <procDate>0001-01-01T00:00:00</procDate>
        </MsdrgProcedure>
      </procedures>
    </codeData>
    <rawRecordStatus>hide</rawRecordStatus>
    <retainRawFiles>false</retainRawFiles>
  </request>
  <results>
    <MsdrgOutput>
      <awi>0</awi>
      <costWeight>0</costWeight>
      <diagnoses>
        <MsdrgDiagnosisOutput>
          <detail>
            <code>String</code>
            <codeId>0</codeId>
            <codeType>String</codeType>
            <codeTypeId>0</codeTypeId>
          </detail>
          <hacCriteria>
            <MsdrgEdit>
              <edit>String</edit>
              <flagDescription>String</flagDescription>
              <flagId>0</flagId>
              <flagTypeKey>String</flagTypeKey>
              <vwShortIndicator>String</vwShortIndicator>
            </MsdrgEdit>
          </hacCriteria>
          <hacUsage>
            <MsdrgEdit>
              <edit>String</edit>
              <flagDescription>String</flagDescription>
              <flagId>0</flagId>
              <flagTypeKey>String</flagTypeKey>
              <vwShortIndicator>String</vwShortIndicator>
            </MsdrgEdit>
          </hacUsage>
          <hasFlags>false</hasFlags>
          <hasHacCriteria>false</hasHacCriteria>
          <hasHacUsage>false</hasHacUsage>
          <returnFlags>
            <MsdrgEdit>
              <edit>String</edit>
              <flagDescription>String</flagDescription>
              <flagId>0</flagId>
              <flagTypeKey>String</flagTypeKey>
              <vwShortIndicator>String</vwShortIndicator>
            </MsdrgEdit>
          </returnFlags>
          <sequence>0</sequence>
        </MsdrgDiagnosisOutput>
      </diagnoses>
      <diagnosisCodeCount>0</diagnosisCodeCount>
      <diagnosisPrincipalFlag>String</diagnosisPrincipalFlag>
      <diagnosisPrincipalHac>String</diagnosisPrincipalHac>
      <drgReturnCode>String</drgReturnCode>
      <drgs xmlns:d4p1="http://schemas.datacontract.org/2004/07/Vw.Api.Internal.ServiceModel.App.Claim">
        <d4p1:EncodeDrg>
          <d4p1:alos>0</d4p1:alos>
          <d4p1:ccMcc>0</d4p1:ccMcc>
          <d4p1:claimDrgId>0</d4p1:claimDrgId>
          <d4p1:claimId>0</d4p1:claimId>
          <d4p1:codeType>String</d4p1:codeType>
          <d4p1:codeTypeId>0</d4p1:codeTypeId>
          <d4p1:drg>String</d4p1:drg>
          <d4p1:drgDescription>String</d4p1:drgDescription>
          <d4p1:drgId>0</d4p1:drgId>
          <d4p1:drgState>String</d4p1:drgState>
          <d4p1:drgStateId>0</d4p1:drgStateId>
          <d4p1:effectiveDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System" i:nil="true" />
          <d4p1:errors>
            <d4p1:ClaimError>
              <d4p1:errorKey>String</d4p1:errorKey>
              <d4p1:errorReason>String</d4p1:errorReason>
            </d4p1:ClaimError>
          </d4p1:errors>
          <d4p1:estimatedRevenue>0</d4p1:estimatedRevenue>
          <d4p1:glos>0</d4p1:glos>
          <d4p1:inactiveDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System" i:nil="true" />
          <d4p1:mdc>0</d4p1:mdc>
          <d4p1:msIndicator>0</d4p1:msIndicator>
          <d4p1:relWeight>0</d4p1:relWeight>
          <d4p1:rom>0</d4p1:rom>
          <d4p1:seriesGrouperId>0</d4p1:seriesGrouperId>
          <d4p1:seriesId>0</d4p1:seriesId>
          <d4p1:soi>0</d4p1:soi>
          <d4p1:suspectDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System" i:nil="true" />
          <d4p1:updatedBy>String</d4p1:updatedBy>
          <d4p1:updatedDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System" i:nil="true" />
        </d4p1:EncodeDrg>
      </drgs>
      <grouperReturnCode>String</grouperReturnCode>
      <grouperSystemKey>auto</grouperSystemKey>
      <grouperVersion>0</grouperVersion>
      <hacStatus>String</hacStatus>
      <hacUniqueCount>0</hacUniqueCount>
      <procedureCodeCount>0</procedureCodeCount>
      <procedures>
        <MsdrgProcedureOutput>
          <detail>
            <code>String</code>
            <codeId>0</codeId>
            <codeType>String</codeType>
            <codeTypeId>0</codeTypeId>
          </detail>
          <hacCriteria>
            <MsdrgEdit>
              <edit>String</edit>
              <flagDescription>String</flagDescription>
              <flagId>0</flagId>
              <flagTypeKey>String</flagTypeKey>
              <vwShortIndicator>String</vwShortIndicator>
            </MsdrgEdit>
          </hacCriteria>
          <hasFlags>false</hasFlags>
          <hasHacCriteria>false</hasHacCriteria>
          <returnFlags>
            <MsdrgEdit>
              <edit>String</edit>
              <flagDescription>String</flagDescription>
              <flagId>0</flagId>
              <flagTypeKey>String</flagTypeKey>
              <vwShortIndicator>String</vwShortIndicator>
            </MsdrgEdit>
          </returnFlags>
          <sequence>0</sequence>
        </MsdrgProcedureOutput>
      </procedures>
    </MsdrgOutput>
  </results>
</MsdrgGroupResponse>

    </soap:Body>
</soap:Envelope>