There is no EMR patient table
The EMR does not maintain its own patient database. It reads and writes the same patients, encounters, problem, medication and allergy tables the network portal uses, scoped by the same entity mixin. There is no synchronisation job, no FHIR bridge between the two, and no mapping table translating an EMR patient id into a network patient id — because there is only one row.
Both front ends authenticate against the same signed cookie issued by the same auth router, and both point at the same API base. The milestone document states the rule directly: every network router is the canonical source, and the EMR is a thin client over it.
The consequence is the product. A problem added during a visit, an allergy recorded at intake, a signed note — each is immediately visible to a utilization reviewer or a care manager working in the network portal who holds a grant to that patient. Not after a nightly job. Not after a reconciliation. The alternative architecture, two systems and an interface engine, spends its life answering the question 'which copy is right'.
