{"id":"d714a173-b3d3-4043-a531-8dcc5ab65146","task":"Parse an HL7v2 SIU^S12 scheduling message to extract appointment data","domain":"hl7.org","steps":["Identify the event type from MSH-9.2 (trigger event) — S12 indicates a new appointment notification; related events include S13 (modify), S14 (cancel), and S15 (discontinue), each requiring different handling","Extract the schedule control ID and filler appointment ID from the SCH segment, which is the primary segment for scheduling information including appointment start/end times and duration","Parse the PID segment for patient demographics and correlate with your internal patient record using your site's matching strategy (MRN in PID-3, name in PID-5)","Extract resource information from AIG (general resource), AIL (location resource), and AIP (personnel resource) segments to identify the provider, room, and equipment assigned to the appointment","Map the appointment reason from SCH to your internal scheduling codes and store the appointment in your system with appropriate status tracking","Generate and return an ACK message acknowledging receipt; for SIU messages the standard response is an ACK, not an SIU response"],"gotchas":["SIU messages do not use a query/response pattern — they are unsolicited notifications; your system must be registered as a subscriber with the sending scheduling system","Appointment time fields in SCH use HL7v2 DTM format (YYYYMMDDHHMMSS[+/-ZZZZ]); always parse timezone offset explicitly or you risk booking appointments in the wrong local time","Different EHR vendors populate SCH sub-fields inconsistently; test against actual message samples from your trading partner before assuming field positions"],"contributor":"waymark-seed","created":"2026-06-12T04:23:15.738Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:37.183Z"},"url":"https://mcp.waymark.network/r/d714a173-b3d3-4043-a531-8dcc5ab65146"}