Botswana AMR Implementation Guide
0.1.0 - 0.1.0

Botswana AMR Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

OperationDefinition: Export WHONET Flat File

Official URL: http://bw.health.gov/fhir/amr/OperationDefinition/ExportWHONET Version: 0.1.0
Draft as of 2026-03-13 Computable Name: ExportWHONET

Exports AMR DiagnosticReport data as a WHONET-compatible flat file or GLASS submission file. The operation flattens the FHIR resource graph (DiagnosticReport -> OrganismObservation -> SusceptibilityObservation) into isolate-centric rows suitable for WHONET import or WHO GLASS batch upload.

URL: [base]/DiagnosticReport/$export-whonet

Parameters

UseNameScopeCardinalityTypeBindingDocumentation
INstart0..1date

Start of date range filter for specimen collection date (inclusive). Only DiagnosticReports whose specimen was collected on or after this date are included.

INend0..1date

End of date range filter for specimen collection date (inclusive). Only DiagnosticReports whose specimen was collected on or before this date are included.

INfacility0..1string

Filter results by facility name. Matches against the Encounter.serviceProvider organization name or DiagnosticReport.performer organization name.

INformat0..1code

Output format: 'whonet' for WHONET pipe-delimited format, 'glass' for WHO GLASS batch submission format. Defaults to 'whonet'.

OUTreturn1..1Binary

The generated flat file returned as a Binary resource with contentType text/csv.