💊 ops-med

February 11, 2025 · View on GitHub

MegaLinter build docker codecov

Kafka processor to map FHIR🔥 medication resources from OPS procedure data

Offset handling

The consumer is configured to auto-commit offsets, in order to improve performance. Successfully processed (and produced) records are committed manually to the offset store (enable.auto.offset.store) to be eligible for auto-comitting.

Mapping OPS

Mapping is done for procedures with codes from the OPS medication chapter 6 with a fixed mapping using ATC codes and ingredient data. Each procedure mapped results in an output bundle containing a Medication and a MedicationStatement resource.

Configuration properties

Application properties are read from a properties file (app.yaml) with default values.

NameDefaultDescription
app.log_levelinfoLog level (error,warn,info,debug,trace)
kafka.brokerslocalhost:9092Kafka brokers
kafka.security_protocolplaintextKafka communication protocol
kafka.ssl.ca_location/app/cert/kafka_ca.pemKafka CA certificate location
kafka.ssl.certificate_location/app/cert/app_cert.pemClient certificate location
kafka.ssl.key_location/app/cert/app_key.pemClient key location
kafka.ssl.key_passwordClient key password
kafka.consumer_groupops-medConsumer group name
kafka.input_topictest-fhirKafka topic to consume
kafka.output_topictest-outputKafka output topic
kafka.offset_resetearliestKafka consumer reset (earliest or latest)
fhir.medication.profilehttps://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/MedicationMedication FHIR profile
fhir.medication.systemhttps://fhir.diz.uni-marburg.de/sid/medication-idMedication identifier system
fhir.medication_statement.profilehttps://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/MedicationStatementMedicationStatement FHIR profile
fhir.medication_statement.systemhttps://fhir.diz.uni-marburg.de/sid/medication-statement-idMedicationStatement identifier system

Environment variables

Override configuration properties by providing environment variables with their respective property names.

License

AGPL-3.0