In the EHR
Lab order tests are the tests a provider picks on the Lab Order Form. Most come from a lab vendor’s compendium, which Elation loads and keeps current. A practice can also create its own tests for vendors that use Elation’s generic compendium. See Creating tests for Order Forms.Working with lab order tests via the API
Compendium updates retire tests and issue new ids. Elation periodically syncs each vendor’s compendium. A test the vendor drops, or one whose definition changes, is archived: itsdeleted_date is set and the record stays in place. A test that returns, or the changed version of one, is created as a new record with a new id. Treat a test id as valid only while its deleted_date is null, and look up the current record by code when a stored id has been archived.
Archived tests stay in list results. Tests archived by a compendium update or by DELETE remain retrievable by id and continue to appear in list responses. A lab order write that references an archived test in content.tests is rejected. Filter to tests where deleted_date is null before offering them for an order.
Field notes
questionsare Ask on Entry (AOE) questions. Answers to them are recorded on the lab order. See The Lab Order Object.compendiumis the lab order compendium the test belongs to. See The Lab Order Compendium Object.