Skip to content

Commit

Permalink
Merge pull request #87 from smilecdr/86-missing-condition-r3
Browse files Browse the repository at this point in the history
[86] add Condition to R3
  • Loading branch information
TahaAttari authored Sep 16, 2024
2 parents 588d599 + 914e19b commit 555a5a5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
37 changes: 36 additions & 1 deletion src/FHIR-R3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -1376,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;

0 comments on commit 555a5a5

Please sign in to comment.