# `HL7v2.Profiles.IHE.RadSwf`
[🔗](https://github.com/Balneario-de-Cofrentes/hl7v2/blob/v3.10.1/lib/hl7v2/profiles/ihe/rad_swf.ex#L1)

IHE Radiology Scheduled Workflow (RAD-SWF) conformance profiles.

Ships factory functions for the two core radiology order
transactions from the IHE Radiology Technical Framework Vol 2
Rev 13.0:

- **RAD-1 Patient Registration** — ADT^A01 sent from ADT Patient
  Registration to Order Placer, DSS/Order Filler, and optionally
  the MPI. Defined on **HL7 v2.3.1** (RAD-SWF v2.5.1 is an
  optional extension that most sites have not adopted). Source:
  IHE RAD TF-2 §4.1.
- **RAD-4 Procedure Scheduled** — `OMI^O23` (HL7 v2.5.1 Option).
  DSS/Order Filler → Image Manager/Report Manager when the
  Requested Procedure with a given Study Instance UID has not
  been transmitted before. Source: IHE RAD TF-2 §4.4.

Note the version mix: RAD-1 is v2.3.1, RAD-4 is v2.5.1.

## Usage

    profile = HL7v2.Profiles.IHE.RadSwf.rad_1_registration_a01()
    HL7v2.validate(msg, profile: profile)

# `all`

```elixir
@spec all() :: %{required(String.t()) =&gt; HL7v2.Profile.t()}
```

Returns the complete RAD-SWF profile catalog.

# `rad_1_registration_a01`

```elixir
@spec rad_1_registration_a01() :: HL7v2.Profile.t()
```

RAD-1 ADT^A01 — Patient Registration (Admit Inpatient).

HL7 v2.3.1. Requires MSH, EVN, PID, PV1. Beyond the IHE PAM
baseline, RAD-1 adds:

- PID-8 (Administrative Sex) R
- PV1-3 (Assigned Patient Location) R for A01
- PV1-7 (Attending Doctor) R for A01
- PV1-10 (Hospital Service) R for A01
- PV1-17 (Admitting Doctor) R for A01

Source: IHE RAD TF-2 §4.1.

# `rad_4_procedure_scheduled_omi`

```elixir
@spec rad_4_procedure_scheduled_omi() :: HL7v2.Profile.t()
```

RAD-4 OMI^O23 — Procedure Scheduled (HL7 v2.5.1 Option).

Sent once per Requested Procedure with a new Study Instance UID.
Requires MSH, PID, PV1, ORC, TQ1, OBR, IPC. ORC-1 must be `"NW"`
(New) and ORC-5 must be `"SC"` (Scheduled). TQ1-7 carries the
Scheduled Procedure Step start date/time (replaces the
deprecated ORC-7.4 / OBR-27.4).

The IPC segment carries the DICOM correlation keys:
- IPC-1 Accession Identifier
- IPC-2 Requested Procedure ID
- IPC-3 **Study Instance UID** (the immutable correlation key)
- IPC-4 Scheduled Procedure Step ID
- IPC-5 Modality

NOTE: Unlike LAB-1/LAB-3, RAD-4 does NOT forbid OBR-15
(Specimen Source). Image-guided biopsy and interventional
radiology workflows legitimately populate OBR-15.

Source: IHE RAD TF-2 §4.4 (v2.5.1 Option).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
