Table of Contents

Class TreatmentMapContributor

Namespace
adas_core.Infrastructure.Utils.MongoMaps
Assembly
adas-core.Infrastructure.dll

Represents a contributor that participates in entity mapping for treatment-related entities by implementing the IEntityMapContributor contract.

public class TreatmentMapContributor : IEntityMapContributor
Inheritance
TreatmentMapContributor
Implements
Inherited Members
Extension Methods

Remarks

This class is intended to be used as a mapping contributor within an entity mapping pipeline, providing configuration logic specific to treatment entities.

Methods

RegisterMaps()

Registers the BSON class maps required to serialize and deserialize the patient treatment domain models (such as PatientTreatment, Medicine, Code, CodeStatus, Note, TreatmentRoute, Entity, CodeAction, and PredictMedicationObservation) to and from MongoDB. Each map is only registered when no class map already exists for the corresponding type, and the registrations define custom element names, default values, null-ignoring behavior, and specialized serializers for object identifiers and enum values.

public void RegisterMaps()