ICD-10 Codes Service
This guide explains how to consume the underlying Resolution Engine (via the JsonWS proxy) to integrate deterministic medical logic directly into your frontend applications.
1. Quick Start
Include the necessary proxy scripts and the CareCascade validation layer in your document head.
<script src="//static.buffa.ly/js/JsonMethod.js?v=2"></script> <script src="//static.buffa.ly/js/validators.js?v=2"></script> <script src="/JsonWS/Buffaly.MedOnt.Icd10CodesService.ashx.js"></script> <script src="Icd10.js"></script>
Instantiate the engine proxy when ready:
2. Resolution Methods
RECOMMENDED
The Icd10.js wrapper builds on the generated JsonWS proxy to expose modern, promise-based helpers via the global object.
Standard text search for finding candidate nodes.
console.table(matches);
Returns the node plus its parent lineage to visualize inheritance.
console.log(withHierarchy);
Resolves specific node attributes and policy flags.
console.log(details);
Checks capability requirements for a specific diagnostic code.
console.log(specialty);
3. Custom Configuration
For enterprise deployments, you may need to point to a private instance or provide a custom auth token.
baseUrl : "/api/medont/icd10-codes-service", // default
authToken: sessionStorage.getItem("jwt") // optional header
});
4. Direct Proxy Invocation
If you prefer not to use the helper wrapper, you can invoke the JsonWS proxy directly. Note that this requires manual Promise wrapping.
const result = await new Promise(resolve => {
icd10Service.GetICDCodesBySearch("Diabetes", resolve);
});
console.log(result);