/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "instruction": Instruction = reader.GetString(); break; case "_instruction": _Instruction = new fhirCsR4.Models.Element(); _Instruction.DeserializeJson(ref reader, options); break; case "maxDuration": MaxDuration = new fhirCsR4.Models.Duration(); MaxDuration.DeserializeJson(ref reader, options); break; case "temperatureQualifier": TemperatureQualifier = new fhirCsR4.Models.CodeableConcept(); TemperatureQualifier.DeserializeJson(ref reader, options); break; case "temperatureRange": TemperatureRange = new fhirCsR4.Models.Range(); TemperatureRange.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "bodySite": BodySite = new fhirCsR4.Models.CodeableConcept(); BodySite.DeserializeJson(ref reader, options); break; case "collectedDateTime": CollectedDateTime = reader.GetString(); break; case "_collectedDateTime": _CollectedDateTime = new fhirCsR4.Models.Element(); _CollectedDateTime.DeserializeJson(ref reader, options); break; case "collectedPeriod": CollectedPeriod = new fhirCsR4.Models.Period(); CollectedPeriod.DeserializeJson(ref reader, options); break; case "collector": Collector = new fhirCsR4.Models.Reference(); Collector.DeserializeJson(ref reader, options); break; case "duration": Duration = new fhirCsR4.Models.Duration(); Duration.DeserializeJson(ref reader, options); break; case "fastingStatusCodeableConcept": FastingStatusCodeableConcept = new fhirCsR4.Models.CodeableConcept(); FastingStatusCodeableConcept.DeserializeJson(ref reader, options); break; case "fastingStatusDuration": FastingStatusDuration = new fhirCsR4.Models.Duration(); FastingStatusDuration.DeserializeJson(ref reader, options); break; case "method": Method = new fhirCsR4.Models.CodeableConcept(); Method.DeserializeJson(ref reader, options); break; case "quantity": Quantity = new fhirCsR4.Models.Quantity(); Quantity.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "detailQuantity": DetailQuantity = new fhirCsR4.Models.Quantity(); DetailQuantity.DeserializeJson(ref reader, options); break; case "detailRange": DetailRange = new fhirCsR4.Models.Range(); DetailRange.DeserializeJson(ref reader, options); break; case "detailCodeableConcept": DetailCodeableConcept = new fhirCsR4.Models.CodeableConcept(); DetailCodeableConcept.DeserializeJson(ref reader, options); break; case "detailString": DetailString = reader.GetString(); break; case "_detailString": _DetailString = new fhirCsR4.Models.Element(); _DetailString.DeserializeJson(ref reader, options); break; case "detailBoolean": DetailBoolean = reader.GetBoolean(); break; case "detailInteger": DetailInteger = reader.GetInt32(); break; case "detailRatio": DetailRatio = new fhirCsR4.Models.Ratio(); DetailRatio.DeserializeJson(ref reader, options); break; case "dueDate": DueDate = reader.GetString(); break; case "_dueDate": _DueDate = new fhirCsR4.Models.Element(); _DueDate.DeserializeJson(ref reader, options); break; case "dueDuration": DueDuration = new fhirCsR4.Models.Duration(); DueDuration.DeserializeJson(ref reader, options); break; case "measure": Measure = new fhirCsR4.Models.CodeableConcept(); Measure.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "url": Url = reader.GetString(); break; case "_url": _Url = new fhirCsR4.Models.Element(); _Url.DeserializeJson(ref reader, options); break; case "valueBase64Binary": ValueBase64Binary = System.Convert.FromBase64String(reader.GetString()); break; case "valueBoolean": ValueBoolean = reader.GetBoolean(); break; case "valueCanonical": ValueCanonical = reader.GetString(); break; case "_valueCanonical": _ValueCanonical = new fhirCsR4.Models.Element(); _ValueCanonical.DeserializeJson(ref reader, options); break; case "valueCode": ValueCode = reader.GetString(); break; case "_valueCode": _ValueCode = new fhirCsR4.Models.Element(); _ValueCode.DeserializeJson(ref reader, options); break; case "valueDate": ValueDate = reader.GetString(); break; case "_valueDate": _ValueDate = new fhirCsR4.Models.Element(); _ValueDate.DeserializeJson(ref reader, options); break; case "valueDateTime": ValueDateTime = reader.GetString(); break; case "_valueDateTime": _ValueDateTime = new fhirCsR4.Models.Element(); _ValueDateTime.DeserializeJson(ref reader, options); break; case "valueDecimal": ValueDecimal = reader.GetDecimal(); break; case "_valueDecimal": _ValueDecimal = new fhirCsR4.Models.Element(); _ValueDecimal.DeserializeJson(ref reader, options); break; case "valueId": ValueId = reader.GetString(); break; case "_valueId": _ValueId = new fhirCsR4.Models.Element(); _ValueId.DeserializeJson(ref reader, options); break; case "valueInstant": ValueInstant = reader.GetString(); break; case "_valueInstant": _ValueInstant = new fhirCsR4.Models.Element(); _ValueInstant.DeserializeJson(ref reader, options); break; case "valueInteger": ValueInteger = reader.GetInt32(); break; case "valueMarkdown": ValueMarkdown = reader.GetString(); break; case "_valueMarkdown": _ValueMarkdown = new fhirCsR4.Models.Element(); _ValueMarkdown.DeserializeJson(ref reader, options); break; case "valueOid": ValueOid = reader.GetString(); break; case "_valueOid": _ValueOid = new fhirCsR4.Models.Element(); _ValueOid.DeserializeJson(ref reader, options); break; case "valuePositiveInt": ValuePositiveInt = reader.GetUInt32(); break; case "valueString": ValueString = reader.GetString(); break; case "_valueString": _ValueString = new fhirCsR4.Models.Element(); _ValueString.DeserializeJson(ref reader, options); break; case "valueTime": ValueTime = reader.GetString(); break; case "_valueTime": _ValueTime = new fhirCsR4.Models.Element(); _ValueTime.DeserializeJson(ref reader, options); break; case "valueUnsignedInt": ValueUnsignedInt = reader.GetUInt32(); break; case "valueUri": ValueUri = reader.GetString(); break; case "_valueUri": _ValueUri = new fhirCsR4.Models.Element(); _ValueUri.DeserializeJson(ref reader, options); break; case "valueUrl": ValueUrl = reader.GetString(); break; case "_valueUrl": _ValueUrl = new fhirCsR4.Models.Element(); _ValueUrl.DeserializeJson(ref reader, options); break; case "valueUuid": ValueUuid = reader.GetGuid(); break; case "valueAddress": ValueAddress = new fhirCsR4.Models.Address(); ValueAddress.DeserializeJson(ref reader, options); break; case "valueAge": ValueAge = new fhirCsR4.Models.Age(); ValueAge.DeserializeJson(ref reader, options); break; case "valueAnnotation": ValueAnnotation = new fhirCsR4.Models.Annotation(); ValueAnnotation.DeserializeJson(ref reader, options); break; case "valueAttachment": ValueAttachment = new fhirCsR4.Models.Attachment(); ValueAttachment.DeserializeJson(ref reader, options); break; case "valueCodeableConcept": ValueCodeableConcept = new fhirCsR4.Models.CodeableConcept(); ValueCodeableConcept.DeserializeJson(ref reader, options); break; case "valueCoding": ValueCoding = new fhirCsR4.Models.Coding(); ValueCoding.DeserializeJson(ref reader, options); break; case "valueContactPoint": ValueContactPoint = new fhirCsR4.Models.ContactPoint(); ValueContactPoint.DeserializeJson(ref reader, options); break; case "valueCount": ValueCount = new fhirCsR4.Models.Count(); ValueCount.DeserializeJson(ref reader, options); break; case "valueDistance": ValueDistance = new fhirCsR4.Models.Distance(); ValueDistance.DeserializeJson(ref reader, options); break; case "valueDuration": ValueDuration = new fhirCsR4.Models.Duration(); ValueDuration.DeserializeJson(ref reader, options); break; case "valueHumanName": ValueHumanName = new fhirCsR4.Models.HumanName(); ValueHumanName.DeserializeJson(ref reader, options); break; case "valueIdentifier": ValueIdentifier = new fhirCsR4.Models.Identifier(); ValueIdentifier.DeserializeJson(ref reader, options); break; case "valueMoney": ValueMoney = new fhirCsR4.Models.Money(); ValueMoney.DeserializeJson(ref reader, options); break; case "valuePeriod": ValuePeriod = new fhirCsR4.Models.Period(); ValuePeriod.DeserializeJson(ref reader, options); break; case "valueQuantity": ValueQuantity = new fhirCsR4.Models.Quantity(); ValueQuantity.DeserializeJson(ref reader, options); break; case "valueRange": ValueRange = new fhirCsR4.Models.Range(); ValueRange.DeserializeJson(ref reader, options); break; case "valueRatio": ValueRatio = new fhirCsR4.Models.Ratio(); ValueRatio.DeserializeJson(ref reader, options); break; case "valueReference": ValueReference = new fhirCsR4.Models.Reference(); ValueReference.DeserializeJson(ref reader, options); break; case "valueSampledData": ValueSampledData = new fhirCsR4.Models.SampledData(); ValueSampledData.DeserializeJson(ref reader, options); break; case "valueSignature": ValueSignature = new fhirCsR4.Models.Signature(); ValueSignature.DeserializeJson(ref reader, options); break; case "valueTiming": ValueTiming = new fhirCsR4.Models.Timing(); ValueTiming.DeserializeJson(ref reader, options); break; case "valueContactDetail": ValueContactDetail = new fhirCsR4.Models.ContactDetail(); ValueContactDetail.DeserializeJson(ref reader, options); break; case "valueContributor": ValueContributor = new fhirCsR4.Models.Contributor(); ValueContributor.DeserializeJson(ref reader, options); break; case "valueDataRequirement": ValueDataRequirement = new fhirCsR4.Models.DataRequirement(); ValueDataRequirement.DeserializeJson(ref reader, options); break; case "valueExpression": ValueExpression = new fhirCsR4.Models.Expression(); ValueExpression.DeserializeJson(ref reader, options); break; case "valueParameterDefinition": ValueParameterDefinition = new fhirCsR4.Models.ParameterDefinition(); ValueParameterDefinition.DeserializeJson(ref reader, options); break; case "valueRelatedArtifact": ValueRelatedArtifact = new fhirCsR4.Models.RelatedArtifact(); ValueRelatedArtifact.DeserializeJson(ref reader, options); break; case "valueTriggerDefinition": ValueTriggerDefinition = new fhirCsR4.Models.TriggerDefinition(); ValueTriggerDefinition.DeserializeJson(ref reader, options); break; case "valueUsageContext": ValueUsageContext = new fhirCsR4.Models.UsageContext(); ValueUsageContext.DeserializeJson(ref reader, options); break; case "valueDosage": ValueDosage = new fhirCsR4.Models.Dosage(); ValueDosage.DeserializeJson(ref reader, options); break; case "valueMeta": ValueMeta = new fhirCsR4.Models.Meta(); ValueMeta.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.Element) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "boundsDuration": BoundsDuration = new fhirCsR4.Models.Duration(); BoundsDuration.DeserializeJson(ref reader, options); break; case "boundsRange": BoundsRange = new fhirCsR4.Models.Range(); BoundsRange.DeserializeJson(ref reader, options); break; case "boundsPeriod": BoundsPeriod = new fhirCsR4.Models.Period(); BoundsPeriod.DeserializeJson(ref reader, options); break; case "count": Count = reader.GetUInt32(); break; case "countMax": CountMax = reader.GetUInt32(); break; case "dayOfWeek": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } DayOfWeek = new List <string>(); while (reader.TokenType != JsonTokenType.EndArray) { DayOfWeek.Add(reader.GetString()); if (!reader.Read()) { throw new JsonException(); } } if (DayOfWeek.Count == 0) { DayOfWeek = null; } break; case "_dayOfWeek": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } _DayOfWeek = new List <Element>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Element obj_DayOfWeek = new fhirCsR4.Models.Element(); obj_DayOfWeek.DeserializeJson(ref reader, options); _DayOfWeek.Add(obj_DayOfWeek); if (!reader.Read()) { throw new JsonException(); } } if (_DayOfWeek.Count == 0) { _DayOfWeek = null; } break; case "duration": Duration = reader.GetDecimal(); break; case "_duration": _Duration = new fhirCsR4.Models.Element(); _Duration.DeserializeJson(ref reader, options); break; case "durationMax": DurationMax = reader.GetDecimal(); break; case "_durationMax": _DurationMax = new fhirCsR4.Models.Element(); _DurationMax.DeserializeJson(ref reader, options); break; case "durationUnit": DurationUnit = reader.GetString(); break; case "_durationUnit": _DurationUnit = new fhirCsR4.Models.Element(); _DurationUnit.DeserializeJson(ref reader, options); break; case "frequency": Frequency = reader.GetUInt32(); break; case "frequencyMax": FrequencyMax = reader.GetUInt32(); break; case "offset": Offset = reader.GetUInt32(); break; case "period": Period = reader.GetDecimal(); break; case "_period": _Period = new fhirCsR4.Models.Element(); _Period.DeserializeJson(ref reader, options); break; case "periodMax": PeriodMax = reader.GetDecimal(); break; case "_periodMax": _PeriodMax = new fhirCsR4.Models.Element(); _PeriodMax.DeserializeJson(ref reader, options); break; case "periodUnit": PeriodUnit = reader.GetString(); break; case "_periodUnit": _PeriodUnit = new fhirCsR4.Models.Element(); _PeriodUnit.DeserializeJson(ref reader, options); break; case "timeOfDay": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } TimeOfDay = new List <string>(); while (reader.TokenType != JsonTokenType.EndArray) { TimeOfDay.Add(reader.GetString()); if (!reader.Read()) { throw new JsonException(); } } if (TimeOfDay.Count == 0) { TimeOfDay = null; } break; case "_timeOfDay": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } _TimeOfDay = new List <Element>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Element obj_TimeOfDay = new fhirCsR4.Models.Element(); obj_TimeOfDay.DeserializeJson(ref reader, options); _TimeOfDay.Add(obj_TimeOfDay); if (!reader.Read()) { throw new JsonException(); } } if (_TimeOfDay.Count == 0) { _TimeOfDay = null; } break; case "when": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } When = new List <string>(); while (reader.TokenType != JsonTokenType.EndArray) { When.Add(reader.GetString()); if (!reader.Read()) { throw new JsonException(); } } if (When.Count == 0) { When = null; } break; case "_when": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } _When = new List <Element>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Element obj_When = new fhirCsR4.Models.Element(); obj_When.DeserializeJson(ref reader, options); _When.Add(obj_When); if (!reader.Read()) { throw new JsonException(); } } if (_When.Count == 0) { _When = null; } break; default: ((fhirCsR4.Models.Element) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "code": Code = new fhirCsR4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "firstDose": FirstDose = new fhirCsR4.Models.Quantity(); FirstDose.DeserializeJson(ref reader, options); break; case "maxDosePerDay": MaxDosePerDay = new fhirCsR4.Models.Quantity(); MaxDosePerDay.DeserializeJson(ref reader, options); break; case "maxDosePerTreatmentPeriod": MaxDosePerTreatmentPeriod = new fhirCsR4.Models.Ratio(); MaxDosePerTreatmentPeriod.DeserializeJson(ref reader, options); break; case "maxSingleDose": MaxSingleDose = new fhirCsR4.Models.Quantity(); MaxSingleDose.DeserializeJson(ref reader, options); break; case "maxTreatmentPeriod": MaxTreatmentPeriod = new fhirCsR4.Models.Duration(); MaxTreatmentPeriod.DeserializeJson(ref reader, options); break; case "targetSpecies": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } TargetSpecies = new List <MedicinalProductPharmaceuticalRouteOfAdministrationTargetSpecies>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.MedicinalProductPharmaceuticalRouteOfAdministrationTargetSpecies objTargetSpecies = new fhirCsR4.Models.MedicinalProductPharmaceuticalRouteOfAdministrationTargetSpecies(); objTargetSpecies.DeserializeJson(ref reader, options); TargetSpecies.Add(objTargetSpecies); if (!reader.Read()) { throw new JsonException(); } } if (TargetSpecies.Count == 0) { TargetSpecies = null; } break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "container": Container = new fhirCsR4.Models.SpecimenDefinitionTypeTestedContainer(); Container.DeserializeJson(ref reader, options); break; case "handling": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Handling = new List <SpecimenDefinitionTypeTestedHandling>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.SpecimenDefinitionTypeTestedHandling objHandling = new fhirCsR4.Models.SpecimenDefinitionTypeTestedHandling(); objHandling.DeserializeJson(ref reader, options); Handling.Add(objHandling); if (!reader.Read()) { throw new JsonException(); } } if (Handling.Count == 0) { Handling = null; } break; case "isDerived": IsDerived = reader.GetBoolean(); break; case "preference": Preference = reader.GetString(); break; case "_preference": _Preference = new fhirCsR4.Models.Element(); _Preference.DeserializeJson(ref reader, options); break; case "rejectionCriterion": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } RejectionCriterion = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.CodeableConcept objRejectionCriterion = new fhirCsR4.Models.CodeableConcept(); objRejectionCriterion.DeserializeJson(ref reader, options); RejectionCriterion.Add(objRejectionCriterion); if (!reader.Read()) { throw new JsonException(); } } if (RejectionCriterion.Count == 0) { RejectionCriterion = null; } break; case "requirement": Requirement = reader.GetString(); break; case "_requirement": _Requirement = new fhirCsR4.Models.Element(); _Requirement.DeserializeJson(ref reader, options); break; case "retentionTime": RetentionTime = new fhirCsR4.Models.Duration(); RetentionTime.DeserializeJson(ref reader, options); break; case "type": Type = new fhirCsR4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }