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
| Draft as of 2026-03-13 |
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:OperationDefinition ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "ExportWHONET"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition ExportWHONET</b></p><a name=\"ExportWHONET\"> </a><a name=\"hcExportWHONET\"> </a><p>URL: [base]/DiagnosticReport/$export-whonet</p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>start</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4B/datatypes.html#date\">date</a></td><td/><td><div><p>Start of date range filter for specimen collection date (inclusive). Only DiagnosticReports whose specimen was collected on or after this date are included.</p>\n</div></td></tr><tr><td>IN</td><td>end</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4B/datatypes.html#date\">date</a></td><td/><td><div><p>End of date range filter for specimen collection date (inclusive). Only DiagnosticReports whose specimen was collected on or before this date are included.</p>\n</div></td></tr><tr><td>IN</td><td>facility</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4B/datatypes.html#string\">string</a></td><td/><td><div><p>Filter results by facility name. Matches against the Encounter.serviceProvider organization name or DiagnosticReport.performer organization name.</p>\n</div></td></tr><tr><td>IN</td><td>format</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4B/datatypes.html#code\">code</a></td><td/><td><div><p>Output format: 'whonet' for WHONET pipe-delimited format, 'glass' for WHO GLASS batch submission format. Defaults to 'whonet'.</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4B/binary.html\">Binary</a></td><td/><td><div><p>The generated flat file returned as a Binary resource with contentType text/csv.</p>\n</div></td></tr></table></div>"^^rdf:XMLLiteral ]
] ; #
fhir:url [
fhir:v "http://bw.health.gov/fhir/amr/OperationDefinition/ExportWHONET"^^xsd:anyURI ;
fhir:l <http://bw.health.gov/fhir/amr/OperationDefinition/ExportWHONET>
] ; #
fhir:version [ fhir:v "0.1.0"] ; #
fhir:name [ fhir:v "ExportWHONET"] ; #
fhir:title [ fhir:v "Export WHONET Flat File"] ; #
fhir:status [ fhir:v "draft"] ; #
fhir:kind [ fhir:v "operation"] ; #
fhir:date [ fhir:v "2026-03-13T21:27:21-04:00"^^xsd:dateTime] ; #
fhir:publisher [ fhir:v "University of Botswana Partnership"] ; #
fhir:contact ( [
fhir:name [ fhir:v "University of Botswana Partnership" ] ;
( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://github.com/Dokotela/bw-amr-ig" ] ] )
] ) ; #
fhir:description [ fhir:v "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."] ; #
fhir:code [ fhir:v "export-whonet"] ; #
fhir:resource ( [ fhir:v "DiagnosticReport"] ) ; #
fhir:system [ fhir:v false] ; #
fhir:type [ fhir:v true] ; #
fhir:instance [ fhir:v false] ; #
fhir:parameter ( [
fhir:name [ fhir:v "start" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "Start of date range filter for specimen collection date (inclusive). Only DiagnosticReports whose specimen was collected on or after this date are included." ] ;
fhir:type [ fhir:v "date" ]
] [
fhir:name [ fhir:v "end" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "End of date range filter for specimen collection date (inclusive). Only DiagnosticReports whose specimen was collected on or before this date are included." ] ;
fhir:type [ fhir:v "date" ]
] [
fhir:name [ fhir:v "facility" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "Filter results by facility name. Matches against the Encounter.serviceProvider organization name or DiagnosticReport.performer organization name." ] ;
fhir:type [ fhir:v "string" ]
] [
fhir:name [ fhir:v "format" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "Output format: 'whonet' for WHONET pipe-delimited format, 'glass' for WHO GLASS batch submission format. Defaults to 'whonet'." ] ;
fhir:type [ fhir:v "code" ]
] [
fhir:name [ fhir:v "return" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 1 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "The generated flat file returned as a Binary resource with contentType text/csv." ] ;
fhir:type [ fhir:v "Binary" ]
] ) . #
IG © 2025 University of Botswana Partnership. Package bw-amr-ig#0.1.0 based on FHIR 4.3.0. Generated 2026-03-13
Links: Table of Contents |
QA Report