Skip to main content

Example

How matching works

Without an id, Photon uses the demographics to find the patient: To choose a candidate, resend with its id. Never pick one automatically: even a single candidate is a judgment call for a person or your own rules. Once you have a patient’s id, send it on every call.

Fields

demographic

clinical

Lists are patches

Allergies, medications, diagnoses and benefits change through patches, so you never resend the whole list: To leave a list unchanged, leave out the field. An empty patch is rejected. An entry given by id resolves exactly. A name or code may match several catalog entries. When it does, Photon returns the options instead of guessing. See Changes and choices.
Always send allergies, or say there are none. Send each allergy (by rxNormId whenever you can, since screening relies on coded entries), or send allergies: { none: true }. Allergies go to the pharmacy with every prescription. When neither is on file, the pharmacist may have to contact the patient before filling.