From a3021b2bcf597cb5be977cdcfa889a36675e0ba9 Mon Sep 17 00:00:00 2001 From: "taha.attari@smilecdr.com" Date: Thu, 12 Sep 2024 19:40:30 -0400 Subject: [PATCH 1/3] [86] add Condition to R3 --- src/FHIR-R3.ts | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/FHIR-R3.ts b/src/FHIR-R3.ts index d40faa0..40d9a34 100644 --- a/src/FHIR-R3.ts +++ b/src/FHIR-R3.ts @@ -809,6 +809,41 @@ export class ProcessRequest extends BaseResource { request: Reference; } +export class Condition extends BaseResource { + resourceType: "Condition"; + identifier?: Identifier[]; + clinicalStatus?: "active" | "recurrence" | "inactive" | "remission" | "resolved"; + verificationStatus?: "provisional" | "differential" | "confirmed" | "refuted" | "entered-in-error" | "unknown"; + category?: CodeableConcept[]; + severity?: CodeableConcept; + code?: CodeableConcept; + bodySite?: CodeableConcept[]; + subject: Reference; + context?: Reference; + onsetDateTime?: string | Date; + onsetAge?: Age; + onsetPeriod?: Period; + onsetRange?: Range; + onsetString?: string; + abatementDateTime?: string | Date; + abatementAge?: Age; + abatementBoolean?: boolean; + abatementPeriod?: Period; + abatementRange?: Range; + abatementString?: string; + assertedDate?: string | Date; + asserter?: Reference; + stage?: { + summary?: CodeableConcept; + assessment?: Reference[]; + }; + evidence?: { + code?: CodeableConcept[]; + detail?: Reference[]; + }[]; + note?: Annotation[] +} + export class Encounter extends BaseResource { resourceType: "Encounter"; identifier: Identifier[]; From bc137d51f4d410528b1c7f1f7b9a6001bf37c7f5 Mon Sep 17 00:00:00 2001 From: "taha.attari@smilecdr.com" Date: Thu, 12 Sep 2024 20:14:13 -0400 Subject: [PATCH 2/3] [86] add Condition to R3 --- src/FHIR-R3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FHIR-R3.ts b/src/FHIR-R3.ts index 40d9a34..f0731e3 100644 --- a/src/FHIR-R3.ts +++ b/src/FHIR-R3.ts @@ -1411,4 +1411,4 @@ export class ValueSetContains extends BackboneElement { } -export type Resource = AllergyIntolerance | ClinicalImpression | Schedule | HealthcareService | Bundle | AuditEvent | CommunicationRequest | Immunization | Observation | Device | Practitioner | PractitionerRole | ProcedureRequest | Task | Communication | CarePlan | EpisodeOfCare | CareTeam | Encounter | ProcessRequest | Account | Location | Organization | AppointmentResponse | Appointment | QuestionnaireResponse | Questionnaire | Slot | Patient | DocumentReference | ValueSet; +export type Resource = AllergyIntolerance | ClinicalImpression | Condition | Schedule | HealthcareService | Bundle | AuditEvent | CommunicationRequest | Immunization | Observation | Device | Practitioner | PractitionerRole | ProcedureRequest | Task | Communication | CarePlan | EpisodeOfCare | CareTeam | Encounter | ProcessRequest | Account | Location | Organization | AppointmentResponse | Appointment | QuestionnaireResponse | Questionnaire | Slot | Patient | DocumentReference | ValueSet; From 914e19b9e48c48ad4f58a6f38847dc71099ac5d8 Mon Sep 17 00:00:00 2001 From: "taha.attari@smilecdr.com" Date: Mon, 16 Sep 2024 12:52:31 -0400 Subject: [PATCH 3/3] added changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 623c4e0..37c6726 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2.2.3 + +### Updates (R3) + +* Added `Condition` resource definition. + ## 2.2.2 * Added `PatchUtils` for generating Parameters resource for `FHIR Patch`.