Set up a complete makeability solution
Makeability decides whether a pair of glasses can be made and which lab should make it. Setting it up is four moves: describe the labs and what they can make, describe the clients and what they sell, say how orders are routed and who may touch what, then point a practice management system at it and prove it. Work down the steps in order — each builds on the one before it.
Where this deployment stands
Point a practice management system at it
Loading…
Overview
Labs
| Lab | Network | Type | Status | Standard | Expedite | Lens products | Priority |
|---|
Labs
Select a lab, or create one.
Lens products
Select a lens product, or create one.
Materials
How thin a lens is made in each material. A minus prescription is thinnest in the middle, so it is made to the material’s minimum centre. A plus prescription is thinnest at its edge, so it is made to the minimum edge. A material that is not set up keeps the minimums its products carry.
Select a material to see or set its minimum thicknesses.
Reject reasons
Every reason the engine gives for a lab not making an order: what it checks, how hard it blocks, and the words the associate reads. A reason nobody has set up behaves as built. Block means no override; Override blocks but the associate may override where the lab allows it; Warn shows the note and leaves the lab selectable, which is how to watch a new check before letting it block.
Select a reason to see what it checks, its words and its limits.
Frames
Select a frame, or create one.
Catalogs
An order arrives in the client's codes and has to be made in the lab's. Each side maps to the shared catalog rather than to the other, so twelve accounts and twenty networks are thirty-two lists to keep, not two hundred and forty pairs. What can actually be ordered is the overlap, and it is computed here rather than kept by hand.
Whose catalog
Saving replaces this owner's list. A product dropped from the list stops being sold: the list is the catalog, so merging would leave a withdrawn product orderable because nobody deleted the row.
| Their code | Their name for it | Shared catalog entry | Also matches (regex) |
|---|
Order
Prescription
| Sph | Cyl | Axis | Add | Add 2 | PD | Near PD | Seg ht | OC ht | Ht dir | Prism | Base | Prism 2 | Base 2 | BC |
|---|
Frame
Extras
Coatings, tints, mirrors and edge work on the order. A lab that will not do one is ruled out by it, and some add lead time.
| Eye | Type | Description | SKU | Code 1 | Code 2 | Comment |
|---|
Lens and labs
The office and company decide the account, and so the contract, the routing rules and which of the client's own lens codes apply. Leave them blank to ask the whole catalog. The labs chosen are sent as the office's mapped labs, the list a practice management system sends to say which labs an office may see. Both buttons send the same order.
Fill in a prescription and a frame, then check makeability.
How it's calculated
One lens, worked through the way the calculator works it. Each step asks one question, states the rule the calculator follows, shows the rule with this order's numbers in it, and gives the answer the calculator reached. The numbers come from the calculator itself, from the same call the Calculator tab makes. This page lays them out and never recalculates them. The figures written into a rule are rounded for reading, while every result is worked from the unrounded ones, so a line redone by hand can land a digit off in its last place.
The example
Prescription
A PD over 40 is read as the two eyes together and halved.
Frame
Picking a library frame fills in its sizes. Change any of them to see what that size does.
Lens
Pick an example, or fill in the form and press Work it out.
Progressive identifier
Find a progressive by what is engraved on it (U3, VeII) or its material code (PLY), and see where its fitting cross sits and how low it can be fitted. From the Electronic Progressive Identifier Catalog: 570 designs.
Select a lens to see its engraving layout, fitting cross, minimum fitting heights and material codes.
Networks
Select a network, or create one.
Users
Administrator only. A user's role and the one thing it is scoped to decide what they may see and change.
Select a user, or create one.
Accounts, offices and contracts
Administrator only. An office does not order from every lab that exists. It orders under a contract, and the contract decides which labs are eligible, how many of them are worth asking, and where particular work is committed. Check Entitlement to see what one office may actually use today, and why every other lab is out.
Accounts
Select an account, or create one.
Routing rules and engine settings
Administrator only. Rules are evaluated top to bottom and the first matching rule that assigns a lab wins; every other action of every matching rule (only, exclude, expedite, note) is applied as well. Editing here changes a draft only — Test draft reports what the draft would do without writing anything, and nothing reaches the server until you press a save button.
Evaluation order
Order matters: move a rule up to let it decide before the ones below it.
Select a rule, or create one.
Test the draft — nothing is saved
Sample orders are evaluated with the rules and settings currently in the editor and compared with the saved ones; changes are highlighted in amber. Save all writes the whole document, and only right after a test of exactly what you are about to save.
Loading…
Monitor
Every call to the makeability endpoint, newest first: what arrived, what was answered, and which catalog product each lens on the order resolved to. Calls that were refused are here too, with the header the caller put its key in and whether that key is the one this deployment expects. Keys themselves are never recorded.
Nothing recorded yet.
Pick a call on the left to see what was received and what was answered.
Change log
Every change to labs, rules, contracts, catalogs and users, newest first, with who made it. Recorded from the single point every write passes through, so nothing that changed the configuration is missing. Credentials are never recorded.
Every rule, in the order it fires
Rules are first-match-wins, so the order is the authority. The engine reads them in six tiers before it reaches the account-wide rules: binding contract direction, binding account direction, binding office direction, then an office's own exceptions, its account's policy, and the contract's defaults. Direction applies only to orders from the office, account or contract it is defined on; the account-wide rules apply to every order that nothing above claimed. This page is read-only: each row links to where it is edited.
Engine settings that shape the date and the routing
Every lab's turnaround
The promise is the job's critical path in the lab's business days: the lens lane the product decides, the coating, and the frame alongside; then finishing and the trip to the store. A blank cell means the lab falls back to its single standard days.
Connect a practice management system
Everything a caller needs to send this service an order and get a lab list back. The service only ever answers: it never calls out, so there is nothing to register and no callback to configure.
Settings
Visionworks' LabListingAPI is pointed at a qualification service by three databag settings.
| Setting | Value |
|---|
A request that works
A malformed order comes back 200 with qualApiStatusCode saying what was wrong and an empty list: the published contract documents one response for this call, and the caller is a point-of-sale screen where an exception is not an answer anybody can act on. The contract forbids extra fields, so the list of what was wrong is not in that reply - post the same order to /explain for it. A body that is not readable JSON is 400, missing or wrong key is 401, over 1 MB is 413: in those the operation never began. Add /explain to either path for the full decision trace, which is the one to reach for when a lab comes back unselectable and you want to know which rule did it.