Definition
Information
Section titled “Information”The Dbo Patientassociatenonregisteredidentifier model holds identifier values recorded for nonregistered patient associates. Each entry records the associate identifier, identifier-type identifier and identifier value together, alongside the organisation information associated with that entry, keeping the value and its recorded type together.
Soft-Deleted Records
Section titled “Soft-Deleted Records”_deleted indicates whether the record has been deleted in the source system.
Examples
Section titled “Examples”dbo.patientassociatenonregisteredidentifier with dbo.patientassociate and dbo.patientidentifiertype details
Section titled “dbo.patientassociatenonregisteredidentifier with dbo.patientassociate and dbo.patientidentifiertype details”Return records alongside descriptive values from the related tables.
SELECT m."_primary_key", m."patientassociateid", p1."displayname" AS "patientassociate_displayname", m."patientidentifiertypeid", p2."description" AS "patientidentifiertype_description"FROM dbo.patientassociatenonregisteredidentifier AS mLEFT JOIN dbo.patientassociate AS p1 ON p1."patientassociateid" = m."patientassociateid" AND p1."organisation" = m."organisation"LEFT JOIN dbo.patientidentifiertype AS p2 ON p2."patientidentifiertypeid" = m."patientidentifiertypeid" AND p2."organisation" = m."organisation";Row count by dbo.patientassociate displayname
Section titled “Row count by dbo.patientassociate displayname”Count dbo.patientassociatenonregisteredidentifier records for each dbo.patientassociate value, joined on patientassociateid.
SELECT p."displayname" AS "patientassociate_displayname", COUNT(*) AS row_countFROM dbo.patientassociatenonregisteredidentifier AS mINNER JOIN dbo.patientassociate AS p ON p."patientassociateid" = m."patientassociateid" AND p."organisation" = m."organisation"GROUP BY p."displayname"ORDER BY row_count DESC;Row count by dbo.patientidentifiertype description
Section titled “Row count by dbo.patientidentifiertype description”Count dbo.patientassociatenonregisteredidentifier records for each dbo.patientidentifiertype value, joined on patientidentifiertypeid.
SELECT p."description" AS "patientidentifiertype_description", COUNT(*) AS row_countFROM dbo.patientassociatenonregisteredidentifier AS mINNER JOIN dbo.patientidentifiertype AS p ON p."patientidentifiertypeid" = m."patientidentifiertypeid" AND p."organisation" = m."organisation"GROUP BY p."description"ORDER BY row_count DESC;