Skip to content

Commit 63bbf2d

Browse files
committed
Task 3: Configure ADT_A03 message handler with preprocessors
1 parent 0cb3695 commit 63bbf2d

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

ai/tickets/converter-skill-tickets/adt-a03-discharge/ticket.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,13 @@ Build ADT_A03 converter following ADT_A01 pattern. Key difference: unconditional
358358

359359
## Task 3: Configure ADT_A03 in config
360360

361-
- [ ] Open `config/hl7v2-to-fhir.json`
362-
- [ ] Add `"ADT-A03"` config block (after `"ADT-A01"`) with:
361+
- [x] Open `config/hl7v2-to-fhir.json`
362+
- [x] Add `"ADT-A03"` config block (after `"ADT-A01"`) with:
363363
- `preprocess.PID`: Apply `move-pid2-into-pid3`, `inject-authority-from-msh` (same as A01; per REQ-P2)
364364
- `preprocess.PV1`: Apply `fix-pv1-authority-with-msh` on field `"19"` (per REQ-P1)
365365
- `converter.PV1.required: true` (no fallback; PV1 mandatory)
366-
- [ ] Run `bun run typecheck` — must pass
367-
- [ ] Stop for review
366+
- [x] Run `bun run typecheck` — must pass
367+
- [x] Stop for review
368368

369369
## Task 4: Write unit tests
370370

config/hl7v2-to-fhir.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,19 @@
2727
"2": ["move-pid2-into-pid3"],
2828
"3": ["inject-authority-from-msh"]
2929
},
30-
"PV1": { "19": ["fix-pv1-authority-with-msh"] }
30+
"PV1": { "19": ["fix-pv1-authority-with-msh"] },
31+
"IN1": { "12": ["normalize-in1-plan-dates"] }
32+
},
33+
"converter": { "PV1": { "required": true } }
34+
},
35+
"ADT-A03": {
36+
"preprocess": {
37+
"PID": {
38+
"2": ["move-pid2-into-pid3"],
39+
"3": ["inject-authority-from-msh"]
40+
},
41+
"PV1": { "19": ["fix-pv1-authority-with-msh"] },
42+
"IN1": { "12": ["normalize-in1-plan-dates"] }
3143
},
3244
"converter": { "PV1": { "required": true } }
3345
},
@@ -36,7 +48,8 @@
3648
"PID": {
3749
"2": ["move-pid2-into-pid3"],
3850
"3": ["inject-authority-from-msh"]
39-
}
51+
},
52+
"IN1": { "12": ["normalize-in1-plan-dates"] }
4053
}
4154
},
4255
"ORU-R01": {

0 commit comments

Comments
 (0)