VitalWare API

<back to all web services

SherpaSearch

The following routes are available for this service:
GET POST/sherpaLtdReturns a comprehensive dataset with concept and code information
GET POST/sherpaLtd/{search}Returns a comprehensive dataset with concept and code informationSearch string can be directly within the URL as part of the path
Parameters:
NameParameterData TypeRequiredDescription
codeSetpathstringNoCode set to search; allows "ICD-10 CM", "ICD-10 PCS", or "ICD-9 CM"; defaults to "ICD-10 CM"
includeIndexpathboolNoTrue to include the ICD index when performing searches (expands results)
searchpath,querystringYesPrimary search phrase
conceptIdListpathint[]NoArray of concept ID's to further limit the primary search phrase
dateOfServicepathdateNoReturns code specific information valid as of this date (defaults to the current date)
startRowpathintNoControls the start row of the code results, typically used in pagination scenarios
endRowpathintNoControls the maximum number of codes returned, defaults to 10
callerUidpathstringNoClient controlled unique identifier, can be anything even embedded JSON, XML, CSV, or anything else. Typically used to tie async responses to some object at the caller.
includeUnspecifiedConceptspathstringNoInclude the unspecified concepts

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

HTTP + XML

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

POST /xml/reply/SherpaSearch HTTP/1.1 
Host: api.vitalware.com 
Content-Type: application/xml
Content-Length: length

<SherpaSearch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">
  <callerUid>String</callerUid>
  <codeSet>String</codeSet>
  <conceptIdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </conceptIdList>
  <dateOfService>0001-01-01T00:00:00</dateOfService>
  <endRow>0</endRow>
  <includeIndex>false</includeIndex>
  <includeUnspecifiedConcepts>false</includeUnspecifiedConcepts>
  <search>String</search>
  <startRow>0</startRow>
</SherpaSearch>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SherpaSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">
  <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>
  <request>
    <callerUid>String</callerUid>
    <codeSet>String</codeSet>
    <conceptIdList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </conceptIdList>
    <dateOfService>0001-01-01T00:00:00</dateOfService>
    <endRow>0</endRow>
    <includeIndex>false</includeIndex>
    <includeUnspecifiedConcepts>false</includeUnspecifiedConcepts>
    <search>String</search>
    <startRow>0</startRow>
  </request>
  <result>
    <Messages>
      <SherpaMessage>
        <Message>String</Message>
      </SherpaMessage>
    </Messages>
    <Results>
      <Instructions>
        <InstructionType>
          <SherpaInstructionType>
            <Instruction>
              <SherpaInstruction>
                <codeRanges>String</codeRanges>
                <instruction>String</instruction>
              </SherpaInstruction>
            </Instruction>
            <type>String</type>
          </SherpaInstructionType>
        </InstructionType>
        <type>String</type>
      </Instructions>
      <SelectedConcepts>
        <ConceptType>
          <SherpaConceptType>
            <Concepts>
              <Concept>
                <SherpaConcept>
                  <count>0</count>
                  <desc>String</desc>
                  <hasInfo>false</hasInfo>
                  <id>0</id>
                </SherpaConcept>
              </Concept>
            </Concepts>
            <count>0</count>
            <type>String</type>
            <typeID>0</typeID>
          </SherpaConceptType>
        </ConceptType>
      </SelectedConcepts>
      <SelectedDiagnosisPageset>
        <Diagnosis>
          <SherpaDiagnosis>
            <code>String</code>
            <codeAlt>String</codeAlt>
            <desc>String</desc>
            <id>0</id>
          </SherpaDiagnosis>
        </Diagnosis>
      </SelectedDiagnosisPageset>
      <SelectedDiagnosisTotal>
        <count>0</count>
      </SelectedDiagnosisTotal>
      <infoNodes>
        <Info>
          <SherpaResultInfo>
            <description>String</description>
            <label>String</label>
            <title>String</title>
            <type>String</type>
            <typeID>0</typeID>
          </SherpaResultInfo>
        </Info>
      </infoNodes>
    </Results>
  </result>
</SherpaSearchResponse>