/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "ageRange": AgeRange = new fhirCsR4.Models.Range(); AgeRange.DeserializeJson(ref reader, options); break; case "ageCodeableConcept": AgeCodeableConcept = new fhirCsR4.Models.CodeableConcept(); AgeCodeableConcept.DeserializeJson(ref reader, options); break; case "gender": Gender = new fhirCsR4.Models.CodeableConcept(); Gender.DeserializeJson(ref reader, options); break; case "physiologicalCondition": PhysiologicalCondition = new fhirCsR4.Models.CodeableConcept(); PhysiologicalCondition.DeserializeJson(ref reader, options); break; case "race": Race = new fhirCsR4.Models.CodeableConcept(); Race.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 "code": Code = new fhirCsR4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "valueCodeableConcept": ValueCodeableConcept = new fhirCsR4.Models.CodeableConcept(); ValueCodeableConcept.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 "valueBoolean": ValueBoolean = reader.GetBoolean(); 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 "amountQuantity": AmountQuantity = new fhirCsR4.Models.Quantity(); AmountQuantity.DeserializeJson(ref reader, options); break; case "amountRange": AmountRange = new fhirCsR4.Models.Range(); AmountRange.DeserializeJson(ref reader, options); break; case "amountString": AmountString = reader.GetString(); break; case "_amountString": _AmountString = new fhirCsR4.Models.Element(); _AmountString.DeserializeJson(ref reader, options); break; case "amountText": AmountText = reader.GetString(); break; case "_amountText": _AmountText = new fhirCsR4.Models.Element(); _AmountText.DeserializeJson(ref reader, options); break; case "amountType": AmountType = new fhirCsR4.Models.CodeableConcept(); AmountType.DeserializeJson(ref reader, options); break; case "referenceRange": ReferenceRange = new fhirCsR4.Models.SubstanceAmountReferenceRange(); ReferenceRange.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 "doseRange": DoseRange = new fhirCsR4.Models.Range(); DoseRange.DeserializeJson(ref reader, options); break; case "doseQuantity": DoseQuantity = new fhirCsR4.Models.Quantity(); DoseQuantity.DeserializeJson(ref reader, options); break; case "rateRatio": RateRatio = new fhirCsR4.Models.Ratio(); RateRatio.DeserializeJson(ref reader, options); break; case "rateRange": RateRange = new fhirCsR4.Models.Range(); RateRange.DeserializeJson(ref reader, options); break; case "rateQuantity": RateQuantity = new fhirCsR4.Models.Quantity(); RateQuantity.DeserializeJson(ref reader, options); break; case "type": Type = new fhirCsR4.Models.CodeableConcept(); Type.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 "ageAge": AgeAge = new fhirCsR4.Models.Age(); AgeAge.DeserializeJson(ref reader, options); break; case "ageRange": AgeRange = new fhirCsR4.Models.Range(); AgeRange.DeserializeJson(ref reader, options); break; case "ageString": AgeString = reader.GetString(); break; case "_ageString": _AgeString = new fhirCsR4.Models.Element(); _AgeString.DeserializeJson(ref reader, options); break; case "bornPeriod": BornPeriod = new fhirCsR4.Models.Period(); BornPeriod.DeserializeJson(ref reader, options); break; case "bornDate": BornDate = reader.GetString(); break; case "_bornDate": _BornDate = new fhirCsR4.Models.Element(); _BornDate.DeserializeJson(ref reader, options); break; case "bornString": BornString = reader.GetString(); break; case "_bornString": _BornString = new fhirCsR4.Models.Element(); _BornString.DeserializeJson(ref reader, options); break; case "condition": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Condition = new List <FamilyMemberHistoryCondition>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.FamilyMemberHistoryCondition objCondition = new fhirCsR4.Models.FamilyMemberHistoryCondition(); objCondition.DeserializeJson(ref reader, options); Condition.Add(objCondition); if (!reader.Read()) { throw new JsonException(); } } if (Condition.Count == 0) { Condition = null; } break; case "dataAbsentReason": DataAbsentReason = new fhirCsR4.Models.CodeableConcept(); DataAbsentReason.DeserializeJson(ref reader, options); break; case "date": Date = reader.GetString(); break; case "_date": _Date = new fhirCsR4.Models.Element(); _Date.DeserializeJson(ref reader, options); break; case "deceasedBoolean": DeceasedBoolean = reader.GetBoolean(); break; case "deceasedAge": DeceasedAge = new fhirCsR4.Models.Age(); DeceasedAge.DeserializeJson(ref reader, options); break; case "deceasedRange": DeceasedRange = new fhirCsR4.Models.Range(); DeceasedRange.DeserializeJson(ref reader, options); break; case "deceasedDate": DeceasedDate = reader.GetString(); break; case "_deceasedDate": _DeceasedDate = new fhirCsR4.Models.Element(); _DeceasedDate.DeserializeJson(ref reader, options); break; case "deceasedString": DeceasedString = reader.GetString(); break; case "_deceasedString": _DeceasedString = new fhirCsR4.Models.Element(); _DeceasedString.DeserializeJson(ref reader, options); break; case "estimatedAge": EstimatedAge = reader.GetBoolean(); break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Identifier objIdentifier = new fhirCsR4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "instantiatesCanonical": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } InstantiatesCanonical = new List <string>(); while (reader.TokenType != JsonTokenType.EndArray) { InstantiatesCanonical.Add(reader.GetString()); if (!reader.Read()) { throw new JsonException(); } } if (InstantiatesCanonical.Count == 0) { InstantiatesCanonical = null; } break; case "_instantiatesCanonical": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } _InstantiatesCanonical = new List <Element>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Element obj_InstantiatesCanonical = new fhirCsR4.Models.Element(); obj_InstantiatesCanonical.DeserializeJson(ref reader, options); _InstantiatesCanonical.Add(obj_InstantiatesCanonical); if (!reader.Read()) { throw new JsonException(); } } if (_InstantiatesCanonical.Count == 0) { _InstantiatesCanonical = null; } break; case "instantiatesUri": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } InstantiatesUri = new List <string>(); while (reader.TokenType != JsonTokenType.EndArray) { InstantiatesUri.Add(reader.GetString()); if (!reader.Read()) { throw new JsonException(); } } if (InstantiatesUri.Count == 0) { InstantiatesUri = null; } break; case "_instantiatesUri": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } _InstantiatesUri = new List <Element>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Element obj_InstantiatesUri = new fhirCsR4.Models.Element(); obj_InstantiatesUri.DeserializeJson(ref reader, options); _InstantiatesUri.Add(obj_InstantiatesUri); if (!reader.Read()) { throw new JsonException(); } } if (_InstantiatesUri.Count == 0) { _InstantiatesUri = null; } break; case "name": Name = reader.GetString(); break; case "_name": _Name = new fhirCsR4.Models.Element(); _Name.DeserializeJson(ref reader, options); break; case "note": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Note = new List <Annotation>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Annotation objNote = new fhirCsR4.Models.Annotation(); objNote.DeserializeJson(ref reader, options); Note.Add(objNote); if (!reader.Read()) { throw new JsonException(); } } if (Note.Count == 0) { Note = null; } break; case "patient": Patient = new fhirCsR4.Models.Reference(); Patient.DeserializeJson(ref reader, options); break; case "reasonCode": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } ReasonCode = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.CodeableConcept objReasonCode = new fhirCsR4.Models.CodeableConcept(); objReasonCode.DeserializeJson(ref reader, options); ReasonCode.Add(objReasonCode); if (!reader.Read()) { throw new JsonException(); } } if (ReasonCode.Count == 0) { ReasonCode = null; } break; case "reasonReference": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } ReasonReference = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Reference objReasonReference = new fhirCsR4.Models.Reference(); objReasonReference.DeserializeJson(ref reader, options); ReasonReference.Add(objReasonReference); if (!reader.Read()) { throw new JsonException(); } } if (ReasonReference.Count == 0) { ReasonReference = null; } break; case "relationship": Relationship = new fhirCsR4.Models.CodeableConcept(); Relationship.DeserializeJson(ref reader, options); break; case "sex": Sex = new fhirCsR4.Models.CodeableConcept(); Sex.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new fhirCsR4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.DomainResource) 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 "contributedToDeath": ContributedToDeath = reader.GetBoolean(); break; case "note": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Note = new List <Annotation>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Annotation objNote = new fhirCsR4.Models.Annotation(); objNote.DeserializeJson(ref reader, options); Note.Add(objNote); if (!reader.Read()) { throw new JsonException(); } } if (Note.Count == 0) { Note = null; } break; case "onsetAge": OnsetAge = new fhirCsR4.Models.Age(); OnsetAge.DeserializeJson(ref reader, options); break; case "onsetRange": OnsetRange = new fhirCsR4.Models.Range(); OnsetRange.DeserializeJson(ref reader, options); break; case "onsetPeriod": OnsetPeriod = new fhirCsR4.Models.Period(); OnsetPeriod.DeserializeJson(ref reader, options); break; case "onsetString": OnsetString = reader.GetString(); break; case "_onsetString": _OnsetString = new fhirCsR4.Models.Element(); _OnsetString.DeserializeJson(ref reader, options); break; case "outcome": Outcome = new fhirCsR4.Models.CodeableConcept(); Outcome.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 "amountQuantity": AmountQuantity = new fhirCsR4.Models.Quantity(); AmountQuantity.DeserializeJson(ref reader, options); break; case "amountRange": AmountRange = new fhirCsR4.Models.Range(); AmountRange.DeserializeJson(ref reader, options); break; case "amountString": AmountString = reader.GetString(); break; case "_amountString": _AmountString = new fhirCsR4.Models.Element(); _AmountString.DeserializeJson(ref reader, options); break; case "amountType": AmountType = new fhirCsR4.Models.CodeableConcept(); AmountType.DeserializeJson(ref reader, options); break; case "interaction": Interaction = new fhirCsR4.Models.CodeableConcept(); Interaction.DeserializeJson(ref reader, options); break; case "organism": Organism = new fhirCsR4.Models.CodeableConcept(); Organism.DeserializeJson(ref reader, options); break; case "organismType": OrganismType = new fhirCsR4.Models.CodeableConcept(); OrganismType.DeserializeJson(ref reader, options); break; case "source": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Source = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Reference objSource = new fhirCsR4.Models.Reference(); objSource.DeserializeJson(ref reader, options); Source.Add(objSource); if (!reader.Read()) { throw new JsonException(); } } if (Source.Count == 0) { Source = null; } break; case "target": Target = new fhirCsR4.Models.Identifier(); Target.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; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "age": Age = new fhirCsR4.Models.Range(); Age.DeserializeJson(ref reader, options); break; case "appliesTo": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } AppliesTo = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.CodeableConcept objAppliesTo = new fhirCsR4.Models.CodeableConcept(); objAppliesTo.DeserializeJson(ref reader, options); AppliesTo.Add(objAppliesTo); if (!reader.Read()) { throw new JsonException(); } } if (AppliesTo.Count == 0) { AppliesTo = null; } break; case "category": Category = reader.GetString(); break; case "_category": _Category = new fhirCsR4.Models.Element(); _Category.DeserializeJson(ref reader, options); break; case "condition": Condition = reader.GetString(); break; case "_condition": _Condition = new fhirCsR4.Models.Element(); _Condition.DeserializeJson(ref reader, options); break; case "context": Context = new fhirCsR4.Models.CodeableConcept(); Context.DeserializeJson(ref reader, options); break; case "gender": Gender = reader.GetString(); break; case "_gender": _Gender = new fhirCsR4.Models.Element(); _Gender.DeserializeJson(ref reader, options); break; case "gestationalAge": GestationalAge = new fhirCsR4.Models.Range(); GestationalAge.DeserializeJson(ref reader, options); break; case "range": Range = new fhirCsR4.Models.Range(); Range.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 "asserter": Asserter = new fhirCsR4.Models.Reference(); Asserter.DeserializeJson(ref reader, options); break; case "category": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Category = new List <string>(); while (reader.TokenType != JsonTokenType.EndArray) { Category.Add(reader.GetString()); if (!reader.Read()) { throw new JsonException(); } } if (Category.Count == 0) { Category = null; } break; case "_category": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } _Category = new List <Element>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Element obj_Category = new fhirCsR4.Models.Element(); obj_Category.DeserializeJson(ref reader, options); _Category.Add(obj_Category); if (!reader.Read()) { throw new JsonException(); } } if (_Category.Count == 0) { _Category = null; } break; case "clinicalStatus": ClinicalStatus = new fhirCsR4.Models.CodeableConcept(); ClinicalStatus.DeserializeJson(ref reader, options); break; case "code": Code = new fhirCsR4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "criticality": Criticality = reader.GetString(); break; case "_criticality": _Criticality = new fhirCsR4.Models.Element(); _Criticality.DeserializeJson(ref reader, options); break; case "encounter": Encounter = new fhirCsR4.Models.Reference(); Encounter.DeserializeJson(ref reader, options); break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Identifier objIdentifier = new fhirCsR4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "lastOccurrence": LastOccurrence = reader.GetString(); break; case "_lastOccurrence": _LastOccurrence = new fhirCsR4.Models.Element(); _LastOccurrence.DeserializeJson(ref reader, options); break; case "note": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Note = new List <Annotation>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Annotation objNote = new fhirCsR4.Models.Annotation(); objNote.DeserializeJson(ref reader, options); Note.Add(objNote); if (!reader.Read()) { throw new JsonException(); } } if (Note.Count == 0) { Note = null; } break; case "onsetDateTime": OnsetDateTime = reader.GetString(); break; case "_onsetDateTime": _OnsetDateTime = new fhirCsR4.Models.Element(); _OnsetDateTime.DeserializeJson(ref reader, options); break; case "onsetAge": OnsetAge = new fhirCsR4.Models.Age(); OnsetAge.DeserializeJson(ref reader, options); break; case "onsetPeriod": OnsetPeriod = new fhirCsR4.Models.Period(); OnsetPeriod.DeserializeJson(ref reader, options); break; case "onsetRange": OnsetRange = new fhirCsR4.Models.Range(); OnsetRange.DeserializeJson(ref reader, options); break; case "onsetString": OnsetString = reader.GetString(); break; case "_onsetString": _OnsetString = new fhirCsR4.Models.Element(); _OnsetString.DeserializeJson(ref reader, options); break; case "patient": Patient = new fhirCsR4.Models.Reference(); Patient.DeserializeJson(ref reader, options); break; case "reaction": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Reaction = new List <AllergyIntoleranceReaction>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.AllergyIntoleranceReaction objReaction = new fhirCsR4.Models.AllergyIntoleranceReaction(); objReaction.DeserializeJson(ref reader, options); Reaction.Add(objReaction); if (!reader.Read()) { throw new JsonException(); } } if (Reaction.Count == 0) { Reaction = null; } break; case "recordedDate": RecordedDate = reader.GetString(); break; case "_recordedDate": _RecordedDate = new fhirCsR4.Models.Element(); _RecordedDate.DeserializeJson(ref reader, options); break; case "recorder": Recorder = new fhirCsR4.Models.Reference(); Recorder.DeserializeJson(ref reader, options); break; case "type": Type = reader.GetString(); break; case "_type": _Type = new fhirCsR4.Models.Element(); _Type.DeserializeJson(ref reader, options); break; case "verificationStatus": VerificationStatus = new fhirCsR4.Models.CodeableConcept(); VerificationStatus.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.DomainResource) 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 "abatementDateTime": AbatementDateTime = reader.GetString(); break; case "_abatementDateTime": _AbatementDateTime = new fhirCsR4.Models.Element(); _AbatementDateTime.DeserializeJson(ref reader, options); break; case "abatementAge": AbatementAge = new fhirCsR4.Models.Age(); AbatementAge.DeserializeJson(ref reader, options); break; case "abatementPeriod": AbatementPeriod = new fhirCsR4.Models.Period(); AbatementPeriod.DeserializeJson(ref reader, options); break; case "abatementRange": AbatementRange = new fhirCsR4.Models.Range(); AbatementRange.DeserializeJson(ref reader, options); break; case "abatementString": AbatementString = reader.GetString(); break; case "_abatementString": _AbatementString = new fhirCsR4.Models.Element(); _AbatementString.DeserializeJson(ref reader, options); break; case "asserter": Asserter = new fhirCsR4.Models.Reference(); Asserter.DeserializeJson(ref reader, options); break; case "bodySite": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } BodySite = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.CodeableConcept objBodySite = new fhirCsR4.Models.CodeableConcept(); objBodySite.DeserializeJson(ref reader, options); BodySite.Add(objBodySite); if (!reader.Read()) { throw new JsonException(); } } if (BodySite.Count == 0) { BodySite = null; } break; case "category": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Category = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.CodeableConcept objCategory = new fhirCsR4.Models.CodeableConcept(); objCategory.DeserializeJson(ref reader, options); Category.Add(objCategory); if (!reader.Read()) { throw new JsonException(); } } if (Category.Count == 0) { Category = null; } break; case "clinicalStatus": ClinicalStatus = new fhirCsR4.Models.CodeableConcept(); ClinicalStatus.DeserializeJson(ref reader, options); break; case "code": Code = new fhirCsR4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "encounter": Encounter = new fhirCsR4.Models.Reference(); Encounter.DeserializeJson(ref reader, options); break; case "evidence": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Evidence = new List <ConditionEvidence>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.ConditionEvidence objEvidence = new fhirCsR4.Models.ConditionEvidence(); objEvidence.DeserializeJson(ref reader, options); Evidence.Add(objEvidence); if (!reader.Read()) { throw new JsonException(); } } if (Evidence.Count == 0) { Evidence = null; } break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Identifier objIdentifier = new fhirCsR4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "note": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Note = new List <Annotation>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Annotation objNote = new fhirCsR4.Models.Annotation(); objNote.DeserializeJson(ref reader, options); Note.Add(objNote); if (!reader.Read()) { throw new JsonException(); } } if (Note.Count == 0) { Note = null; } break; case "onsetDateTime": OnsetDateTime = reader.GetString(); break; case "_onsetDateTime": _OnsetDateTime = new fhirCsR4.Models.Element(); _OnsetDateTime.DeserializeJson(ref reader, options); break; case "onsetAge": OnsetAge = new fhirCsR4.Models.Age(); OnsetAge.DeserializeJson(ref reader, options); break; case "onsetPeriod": OnsetPeriod = new fhirCsR4.Models.Period(); OnsetPeriod.DeserializeJson(ref reader, options); break; case "onsetRange": OnsetRange = new fhirCsR4.Models.Range(); OnsetRange.DeserializeJson(ref reader, options); break; case "onsetString": OnsetString = reader.GetString(); break; case "_onsetString": _OnsetString = new fhirCsR4.Models.Element(); _OnsetString.DeserializeJson(ref reader, options); break; case "recordedDate": RecordedDate = reader.GetString(); break; case "_recordedDate": _RecordedDate = new fhirCsR4.Models.Element(); _RecordedDate.DeserializeJson(ref reader, options); break; case "recorder": Recorder = new fhirCsR4.Models.Reference(); Recorder.DeserializeJson(ref reader, options); break; case "severity": Severity = new fhirCsR4.Models.CodeableConcept(); Severity.DeserializeJson(ref reader, options); break; case "stage": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Stage = new List <ConditionStage>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.ConditionStage objStage = new fhirCsR4.Models.ConditionStage(); objStage.DeserializeJson(ref reader, options); Stage.Add(objStage); if (!reader.Read()) { throw new JsonException(); } } if (Stage.Count == 0) { Stage = null; } break; case "subject": Subject = new fhirCsR4.Models.Reference(); Subject.DeserializeJson(ref reader, options); break; case "verificationStatus": VerificationStatus = new fhirCsR4.Models.CodeableConcept(); VerificationStatus.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.DomainResource) 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 "outcome": Outcome = new fhirCsR4.Models.CodeableConcept(); Outcome.DeserializeJson(ref reader, options); break; case "probabilityDecimal": ProbabilityDecimal = reader.GetDecimal(); break; case "_probabilityDecimal": _ProbabilityDecimal = new fhirCsR4.Models.Element(); _ProbabilityDecimal.DeserializeJson(ref reader, options); break; case "probabilityRange": ProbabilityRange = new fhirCsR4.Models.Range(); ProbabilityRange.DeserializeJson(ref reader, options); break; case "qualitativeRisk": QualitativeRisk = new fhirCsR4.Models.CodeableConcept(); QualitativeRisk.DeserializeJson(ref reader, options); break; case "rationale": Rationale = reader.GetString(); break; case "_rationale": _Rationale = new fhirCsR4.Models.Element(); _Rationale.DeserializeJson(ref reader, options); break; case "relativeRisk": RelativeRisk = reader.GetDecimal(); break; case "_relativeRisk": _RelativeRisk = new fhirCsR4.Models.Element(); _RelativeRisk.DeserializeJson(ref reader, options); break; case "whenPeriod": WhenPeriod = new fhirCsR4.Models.Period(); WhenPeriod.DeserializeJson(ref reader, options); break; case "whenRange": WhenRange = new fhirCsR4.Models.Range(); WhenRange.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 "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; } }