=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===

This commit is contained in:
julian
2026-06-28 02:50:05 -07:00
parent a19fb90902
commit 586f02a2ca
654 changed files with 5260 additions and 0 deletions
@@ -13,6 +13,7 @@ namespace adas_core.Infrastructure.Utils;
/// <remarks>
/// The optional <see cref="Type"/> constructor parameter specifies the target value type used during conversion.
/// </remarks>
/// <!-- aidoc:v1 sig=b25ac53 -->
public class PatientObservationConverter(Type? valueType) : JsonConverter<PatientObservation>, IBsonSerializer
{
/// <summary>
@@ -22,6 +23,8 @@ public class PatientObservationConverter(Type? valueType) : JsonConverter<Patien
/// <param name="args">The deserialization arguments containing additional information for the operation.</param>
/// <returns>An object representing the deserialized value.</returns>
/// <exception cref="NotImplementedException">Always thrown because the method is not yet implemented.</exception>
/// <!-- aidoc-review:v1 severity=medium kind=stale_summary
/// "Summary states the method 'Deserializes a BSON value', but the implementation only throws NotImplementedException and does not perform any deserialization." -->
public object Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)
{
throw new NotImplementedException();
@@ -34,6 +37,7 @@ public class PatientObservationConverter(Type? valueType) : JsonConverter<Patien
/// <param name="args">The BSON serialization arguments containing additional information that may influence the serialization process.</param>
/// <param name="value">The object to be serialized into BSON.</param>
/// <exception cref="NotImplementedException">Thrown because the serialization logic has not been implemented.</exception>
/// <!-- aidoc:v1 sig=bd1484e body=bfa6f2f -->
public void Serialize(BsonSerializationContext context, BsonSerializationArgs args, object value)
{
throw new NotImplementedException();
@@ -47,6 +51,7 @@ public class PatientObservationConverter(Type? valueType) : JsonConverter<Patien
/// <param name="writer">The JSON writer that receives the serialized output.</param>
/// <param name="value">The patient observation to serialize. When <c>null</c>, the method performs no serialization.</param>
/// <param name="serializer">The JSON serializer used during the conversion process.</param>
/// <!-- aidoc:v1 sig=272998e body=b3fc129 -->
public override void WriteJson(JsonWriter writer, PatientObservation? value, JsonSerializer serializer)
{
if (value != null)
@@ -66,6 +71,7 @@ public class PatientObservationConverter(Type? valueType) : JsonConverter<Patien
/// </summary>
/// <param name="value">The object instance whose property should be annotated.</param>
/// <param name="propertyName">The name of the property to which the StringEnumConverter attribute should be added.</param>
/// <!-- aidoc:v1 sig=02b15d7 body=a196735 -->
private static void AddStringEnumConverterAttribute(object value, string propertyName)
{
var prop = value.GetType().GetProperty(propertyName);
@@ -101,6 +107,7 @@ public class PatientObservationConverter(Type? valueType) : JsonConverter<Patien
/// <param name="serializer">The <see cref="JsonSerializer"/> used to read nested values.</param>
/// <returns>A <see cref="PatientObservation"/> instance produced from the JSON.</returns>
/// <exception cref="NotImplementedException">Thrown because the method has not been implemented yet.</exception>
/// <!-- aidoc:v1 sig=d5b4252 body=bfa6f2f -->
public override PatientObservation ReadJson(JsonReader reader, Type objectType, PatientObservation? existingValue,
bool hasExistingValue, JsonSerializer serializer)
{