# 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
  object
  TreatmentMapContributor

Implements
  IEntityMapContributor

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## 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()