HL7 OSD Order Sequence Definition

HL7 datatype components OSD components from HL7 v2.5.1 Hide components

These are the generated components for the version selected at the top of the page. The article stays practical, and this panel follows the chosen HL7 version.

Components

PosComponentNameTypeTableDescription
1 OSD.1 Sequence/Results Flag ID 0524 Sequence/Results Flag; Type ID; HL7 table 0524.
2 OSD.2 Placer Order Number: Entity Identifier ST Placer Order Number: Entity Identifier; Type ST.
3 OSD.3 Placer Order Number: Namespace ID IS 0363 Placer Order Number: Namespace ID; Type IS; HL7 table 0363.
4 OSD.4 Filler Order Number: Entity Identifier ST Filler Order Number: Entity Identifier; Type ST.
5 OSD.5 Filler Order Number: Namespace ID IS 0363 Filler Order Number: Namespace ID; Type IS; HL7 table 0363.
6 OSD.6 Sequence Condition Value ST Sequence Condition Value; Type ST.
7 OSD.7 Maximum Number of Repeats NM Maximum Number of Repeats; Type NM.
8 OSD.8 Placer Order Number: Universal ID ST Placer Order Number: Universal ID; Type ST.
9 OSD.9 Placer Order Number: Universal ID Type ID 0301 Placer Order Number: Universal ID Type; Type ID; HL7 table 0301.
10 OSD.10 Filler Order Number: Universal ID ST Filler Order Number: Universal ID; Type ST.
11 OSD.11 Filler Order Number: Universal ID Type ID 0301 Filler Order Number: Universal ID Type; Type ID; HL7 table 0301.

OSD describes order sequencing. It is a compact way to say how an order relates to other orders in a sequence, but many modern interfaces use clearer order relationship fields instead.

In this guide, OSD appears in TQ. That used-by list is a good reality check: the datatype is only half the story, and the field that uses it tells you the workflow.

The component panel above is expanded by default because most datatype pages are used as quick lookup pages. Start there for the exact HL7 v2.5.1 shape, then use the notes below for the practical gotchas.

OSD-1 to OSD-11: Component Quick Read

The generated component panel above is the formal quick lookup. The short version is below so you can scan the shape without counting carets by eye.

The table-backed components here are OSD-1, OSD-3, OSD-5, OSD-9, OSD-11. Keep those values to the table or value set your implementation guide names, especially when the field is crossing organization boundaries.

  • OSD-1 Sequence/Results Flag - Sequence/Results Flag. Type ID. Table 0524.
  • OSD-2 Placer Order Number: Entity Identifier - Placer Order Number: Entity Identifier. Type ST.
  • OSD-3 Placer Order Number: Namespace ID - Placer Order Number: Namespace ID. Type IS. Table 0363.
  • OSD-4 Filler Order Number: Entity Identifier - Filler Order Number: Entity Identifier. Type ST.
  • OSD-5 Filler Order Number: Namespace ID - Filler Order Number: Namespace ID. Type IS. Table 0363.
  • OSD-6 Sequence Condition Value - Sequence Condition Value. Type ST.
  • OSD-7 Maximum Number of Repeats - Maximum Number of Repeats. Type NM.
  • OSD-8 Placer Order Number: Universal ID - Placer Order Number: Universal ID. Type ST.
  • OSD-9 Placer Order Number: Universal ID Type - Placer Order Number: Universal ID Type. Type ID. Table 0301.
  • OSD-10 Filler Order Number: Universal ID - Filler Order Number: Universal ID. Type ST.
  • OSD-11 Filler Order Number: Universal ID Type - Filler Order Number: Universal ID Type. Type ID. Table 0301.

Practical Notes

Text still has to survive HL7 delimiters. If the source value can contain |, ^, ~, &, or a backslash, encode it before putting it into the message. Integration Soup and the HL7 parser helpers include HL7Encode and HL7Decode for that exact kind of cleanup.

In HL7 Soup Web, click a field that uses OSD and the interpretation view will show which component you are sitting in and where that value lives in the raw message. That is especially handy with compact datatypes because one missing caret can move every value after it.

Official and Reference Notes

For formal reference, compare the generated HL7 v2.5.1 panel above with the HL7 v2.5.1 datatype list and the HL7 Terminology data type code system. Local implementation guides can narrow allowed values, tables, and component usage.

Related Datatypes

Related quick lookups: ID, ST, IS, NM.