Skip to content

Encounter.ID only uses visit number (PV1.19) when assigning authority is also set #592

@wrschneider

Description

@wrschneider

Encounter.ID will be based on the visit number (PV1.19) if it's a CX type and assigning authority (PV1.19.4) is set.

Assigning authority is optional, though, and visit number can also be a NM type for backwards compatibility. So it may just be a number.

When this happens, the ID/_Encounter.liquid template will use the entire PV1 segment to generate the ID, which means that an A01 admit and A03 discharge event with the same visit number may get different encounter IDs if anything else in the PV1 segment is different across the two messages (for example: admit/discharge in different rooms).

Wondering if ID/_Encounter.liquid should fall back to PV1.19.1 first before falling back to PV1 or if there's a reason for not?

Note that the Encounter template will use visit number alone in identifier -- treats the number as the value and the assigning authority as the system

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions