Class PatientAppointment
A JSON converter that handles the serialization and deserialization of PatientAppointment objects to and from JSON format.
public class PatientAppointment : JsonConverter
- Inheritance
-
JsonConverterPatientAppointment
- Inherited Members
-
JsonConverter.CanReadJsonConverter.CanWrite
- Extension Methods
Properties
Allergies
public List<Allergies> Allergies { get; set; }
Property Value
AppointmentOperationType
public OperationType? AppointmentOperationType { get; set; }
Property Value
AppointmentReason
public string? AppointmentReason { get; set; }
Property Value
AppointmentStatus
public OperationType? AppointmentStatus { get; set; }
Property Value
AppointmentType
public string? AppointmentType { get; set; }
Property Value
CreateTime
public DateTime? CreateTime { get; set; }
Property Value
Duration
public double Duration { get; set; }
Property Value
EpisodeActivation
public bool EpisodeActivation { get; set; }
Property Value
EventReason
public string? EventReason { get; set; }
Property Value
FillerContact
public Person? FillerContact { get; set; }
Property Value
FillerOrder
public Entity? FillerOrder { get; set; }
Property Value
Id
public ObjectId Id { get; set; }
Property Value
- ObjectId
Patient
public Person? Patient { get; set; }
Property Value
PatientClass
public string? PatientClass { get; set; }
Property Value
PatientId
public ObjectId PatientId { get; set; }
Property Value
- ObjectId
PlacerContact
public Person? PlacerContact { get; set; }
Property Value
PlacerOrder
public Entity? PlacerOrder { get; set; }
Property Value
ResourceGroups
public List<PatientAppointmentResourceGroup> ResourceGroups { get; set; }
Property Value
Timings
public List<Timing> Timings { get; set; }
Property Value
UpdateTime
public DateTime UpdateTime { get; set; }
Property Value
VisitNumber
public string? VisitNumber { get; set; }
Property Value
Methods
ApplyResourceGroups(PatientAppointment?)
Applies the configured actions to each resource group, optionally pulling existing data from the provided database appointment.
When apdb is supplied and has a matching resource group, the actions are applied against the persisted data; otherwise the group is processed with a null source.
public List<PatientAppointmentResourceGroup> ApplyResourceGroups(PatientAppointment? apdb = null)
Parameters
apdbPatientAppointmentThe optional persisted PatientAppointment whose resource groups provide the source data for the actions. May be null or have fewer resource groups than the current list.
Returns
- List<PatientAppointmentResourceGroup>
The list of PatientAppointmentResourceGroup instances with services, resources, locations, and personnel populated after applying the configured actions.
CanConvert(Type)
Determines whether the converter can convert the specified type, supporting only the PatientAppointment type.
public override bool CanConvert(Type objectType)
Parameters
objectTypeTypeThe type to check for converter support.
Returns
- bool
trueifobjectTypeis PatientAppointment; otherwise,false.
ReadJson(JsonReader, Type, object?, JsonSerializer)
Reads the JSON representation of an object using the specified reader and serializer. This override is not yet implemented and currently throws a NotImplementedException.
public override object ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
Parameters
readerJsonReaderThe Newtonsoft.Json.JsonReader used to read the JSON content.
objectTypeTypeThe type of the object being deserialized.
existingValueobjectThe existing value of the object being read, or
nullif no value exists.serializerJsonSerializerThe Newtonsoft.Json.JsonSerializer invoking the converter.
Returns
- object
An object representing the deserialized value.
Exceptions
- NotImplementedException
Always thrown, as the method has not been implemented.
WriteJson(JsonWriter, object?, JsonSerializer)
Serializes the given value to JSON while excluding the "Id" property from the output. If the value is null, nothing is written to the writer.
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
Parameters
writerJsonWriterThe JSON writer to which the serialized output is written.
valueobjectThe object to serialize. A null value results in no output being written.
serializerJsonSerializerThe JSON serializer used to perform the conversion.