/// <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 "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 "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 "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; } }