@smile-cdr/fhirts 1.4.3 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/FHIR-R3.d.ts +52 -15
- package/dist/FHIR-R3.js +10 -0
- package/package.json +1 -1
- package/src/FHIR-R3.ts +53 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.6
|
|
4
|
+
|
|
5
|
+
### Updates (R3)
|
|
6
|
+
|
|
7
|
+
* Added AllergyIntolerance resource.
|
|
8
|
+
|
|
9
|
+
## 1.4.5
|
|
10
|
+
|
|
11
|
+
### Updates (R3)
|
|
12
|
+
|
|
13
|
+
* Added optional date type properties to FHIR dateTime/Date properties for easier parsing on the front-end side.
|
|
14
|
+
|
|
15
|
+
## 1.4.4
|
|
16
|
+
|
|
17
|
+
### Updates (R3)
|
|
18
|
+
|
|
19
|
+
* Fixed typo in `CommunicationRequest.recipient` (was previously `CommunicationRequest.recipent`)
|
|
20
|
+
|
|
3
21
|
## 1.4.3
|
|
4
22
|
|
|
5
23
|
### Updates (R4)
|
package/dist/FHIR-R3.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export declare class Address extends FHIRElement {
|
|
|
80
80
|
}
|
|
81
81
|
export declare class Meta extends FHIRElement {
|
|
82
82
|
versionId: string;
|
|
83
|
-
lastUpdated: string;
|
|
83
|
+
lastUpdated: string | Date;
|
|
84
84
|
profile: string;
|
|
85
85
|
security: Coding;
|
|
86
86
|
tag: Coding;
|
|
@@ -90,8 +90,8 @@ export declare class CodeableConcept extends FHIRElement {
|
|
|
90
90
|
text: string;
|
|
91
91
|
}
|
|
92
92
|
export declare class Period extends FHIRElement {
|
|
93
|
-
start: string;
|
|
94
|
-
end: string;
|
|
93
|
+
start: string | Date;
|
|
94
|
+
end: string | Date;
|
|
95
95
|
}
|
|
96
96
|
export declare class Quantity extends FHIRElement {
|
|
97
97
|
value: number;
|
|
@@ -344,8 +344,8 @@ export declare class Restriction extends BackboneElement {
|
|
|
344
344
|
export declare class AvailableTime extends BackboneElement {
|
|
345
345
|
daysOfWeek: string[];
|
|
346
346
|
allDay: boolean;
|
|
347
|
-
availableStartTime: string;
|
|
348
|
-
availableEndTime: string;
|
|
347
|
+
availableStartTime: string | Date;
|
|
348
|
+
availableEndTime: string | Date;
|
|
349
349
|
}
|
|
350
350
|
export declare class NotAvailable extends BackboneElement {
|
|
351
351
|
description: string;
|
|
@@ -514,12 +514,12 @@ export declare class Questionnaire extends Resource {
|
|
|
514
514
|
title: string;
|
|
515
515
|
status: string;
|
|
516
516
|
experimental: boolean;
|
|
517
|
-
date: string;
|
|
517
|
+
date: string | Date;
|
|
518
518
|
publisher: string;
|
|
519
519
|
description: string;
|
|
520
520
|
purpose: string;
|
|
521
|
-
rovalDate: string;
|
|
522
|
-
lastReviewedDate: string;
|
|
521
|
+
rovalDate: string | Date;
|
|
522
|
+
lastReviewedDate: string | Date;
|
|
523
523
|
effectivePeriod: Period;
|
|
524
524
|
useContext: UsageContext[];
|
|
525
525
|
jurisdiction: CodeableConcept[];
|
|
@@ -535,7 +535,7 @@ export declare class Patient extends Resource {
|
|
|
535
535
|
name: HumanName[];
|
|
536
536
|
telecom: ContactPoint[];
|
|
537
537
|
gender: Code;
|
|
538
|
-
birthDate: string;
|
|
538
|
+
birthDate: string | Date;
|
|
539
539
|
address: Address;
|
|
540
540
|
maritalStatus: CodeableConcept;
|
|
541
541
|
contact: Contact[];
|
|
@@ -795,7 +795,7 @@ export declare class Practitioner extends Resource {
|
|
|
795
795
|
telecom: ContactPoint[];
|
|
796
796
|
address: Address[];
|
|
797
797
|
gender: string;
|
|
798
|
-
birthDate: string;
|
|
798
|
+
birthDate: string | Date;
|
|
799
799
|
photo: Attachment[];
|
|
800
800
|
qualification: Qualification[];
|
|
801
801
|
communication: CodeableConcept[];
|
|
@@ -860,13 +860,13 @@ export declare class Immunization extends Resource {
|
|
|
860
860
|
vaccineCode: CodeableConcept;
|
|
861
861
|
patient: Reference;
|
|
862
862
|
encounter: Reference;
|
|
863
|
-
date: string;
|
|
863
|
+
date: string | Date;
|
|
864
864
|
primarySource: boolean;
|
|
865
865
|
reportOrigin: CodeableConcept;
|
|
866
866
|
location: Reference;
|
|
867
867
|
manufacturer: Reference;
|
|
868
868
|
lotNumber: string;
|
|
869
|
-
expirationDate: string;
|
|
869
|
+
expirationDate: string | Date;
|
|
870
870
|
site: CodeableConcept;
|
|
871
871
|
route: CodeableConcept;
|
|
872
872
|
doseQuantity: DoseCoding;
|
|
@@ -885,7 +885,7 @@ export declare class CommunicationRequest extends Resource {
|
|
|
885
885
|
priority: string;
|
|
886
886
|
medium: CodeableConcept[];
|
|
887
887
|
subject: Reference;
|
|
888
|
-
|
|
888
|
+
recipient: Reference[];
|
|
889
889
|
topic: Reference[];
|
|
890
890
|
context: Reference[];
|
|
891
891
|
payload: Payload[];
|
|
@@ -978,9 +978,9 @@ export declare class ClinicalImpression extends Resource {
|
|
|
978
978
|
description: string;
|
|
979
979
|
subject: Reference;
|
|
980
980
|
context: Reference;
|
|
981
|
-
effectiveDateTime: string;
|
|
981
|
+
effectiveDateTime: string | Date;
|
|
982
982
|
effectivePeriod: Period;
|
|
983
|
-
date: string;
|
|
983
|
+
date: string | Date;
|
|
984
984
|
assessor: Reference;
|
|
985
985
|
previous: Reference;
|
|
986
986
|
problem: Reference[];
|
|
@@ -1002,4 +1002,41 @@ export declare class ClinicalImpressionFinding extends BackboneElement {
|
|
|
1002
1002
|
itemCodeableConcept: CodeableConcept;
|
|
1003
1003
|
itemReference: Reference;
|
|
1004
1004
|
}
|
|
1005
|
+
export declare class AllergyIntolerance extends Resource {
|
|
1006
|
+
identifier: Identifier[];
|
|
1007
|
+
clinicalStatus: Code;
|
|
1008
|
+
verificationStatus: Code;
|
|
1009
|
+
type: Code;
|
|
1010
|
+
category: Code[];
|
|
1011
|
+
critically: Code;
|
|
1012
|
+
code: CodeableConcept;
|
|
1013
|
+
patient: Reference;
|
|
1014
|
+
onsetDateTime: Date | string;
|
|
1015
|
+
onsetAge: Age;
|
|
1016
|
+
onsetPeriod: Period;
|
|
1017
|
+
onsetRange: Range;
|
|
1018
|
+
onsetString: string;
|
|
1019
|
+
assertedDate: Date | string;
|
|
1020
|
+
recorder: Reference;
|
|
1021
|
+
asserted: Reference;
|
|
1022
|
+
lastOccurrence: Date | string;
|
|
1023
|
+
note: Annotation[];
|
|
1024
|
+
reaction: AllergyIntoleranceReaction[];
|
|
1025
|
+
}
|
|
1026
|
+
export declare class AllergyIntoleranceReaction extends BackboneElement {
|
|
1027
|
+
substance: CodeableConcept;
|
|
1028
|
+
manifestation: CodeableConcept[];
|
|
1029
|
+
description: string;
|
|
1030
|
+
onset: Date | string;
|
|
1031
|
+
severity: Code;
|
|
1032
|
+
exposureRoute: CodeableConcept;
|
|
1033
|
+
note: Annotation[];
|
|
1034
|
+
}
|
|
1035
|
+
export declare class Age extends FHIRElement {
|
|
1036
|
+
value: number;
|
|
1037
|
+
comparator: '<' | '<=' | '>=' | '>';
|
|
1038
|
+
unit: string;
|
|
1039
|
+
system: string;
|
|
1040
|
+
code: Code;
|
|
1041
|
+
}
|
|
1005
1042
|
export {};
|
package/dist/FHIR-R3.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Restriction = exports.SampledData = exports.Output = exports.Input = exports.Range = exports.Ratio = exports.Component = exports.Timing = exports.Activity = exports.EncounterParticipant = exports.Participant = exports.ReferenceRange = exports.Context = exports.ContextRelated = exports.Annotation = exports.FHIROption = exports.Answer = exports.EnableWhen = exports.Network = exports.Payload = exports.Identifier = exports.Reference = exports.ContactDetail = exports.ContactPoint = exports.Contact = exports.PatientCommunication = exports.Link = exports.Content = exports.Qualification = exports.Attachment = exports.VaccinationProtocol = exports.ImmunizationReaction = exports.ImmunizationExplaination = exports.PractitionerForImmunization = exports.UsageContext = exports.Quantity = exports.Period = exports.CodeableConcept = exports.Meta = exports.Address = exports.Extension = exports.HumanName = exports.DoseCoding = exports.Coding = exports.Code = exports.Narrative = exports.Resource = exports.DomainResource = exports.BackboneElement = exports.FHIRElement = void 0;
|
|
4
4
|
exports.ClinicalImpressionFinding = exports.ClinicalImpressionInvestigation = exports.ClinicalImpression = exports.Slot = exports.Schedule = exports.HealthcareService = exports.Bundle = exports.AuditEvent = exports.CommunicationRequest = exports.Immunization = exports.Observation = exports.Device = exports.Practitioner = exports.PractitionerRole = exports.ProcedureRequest = exports.Task = exports.Communication = exports.CarePlan = exports.EpisodeOfCare = exports.CareTeam = exports.CareTeamParticipant = exports.Encounter = exports.ProcessRequest = exports.Account = exports.Location = exports.Organization = exports.AppointmentResponse = exports.Appointment = exports.DocumentReference = exports.Patient = exports.Questionnaire = exports.QuestionnaireResponse = exports.Udi = exports.Entity = exports.EntityDetail = exports.Source = exports.Agent = exports.Item = exports.QuestionnaireResponseItem = exports.Requester = exports.Position = exports.ActivityDetail = exports.BundleEntry = exports.BundleResponse = exports.BundleRequest = exports.Search = exports.BundleSignature = exports.BundleLink = exports.NotAvailable = exports.AvailableTime = void 0;
|
|
5
|
+
exports.Age = exports.AllergyIntoleranceReaction = exports.AllergyIntolerance = void 0;
|
|
5
6
|
/* This is base class from which other elements are derived */
|
|
6
7
|
class FHIRElement {
|
|
7
8
|
}
|
|
@@ -379,3 +380,12 @@ exports.ClinicalImpressionInvestigation = ClinicalImpressionInvestigation;
|
|
|
379
380
|
class ClinicalImpressionFinding extends BackboneElement {
|
|
380
381
|
}
|
|
381
382
|
exports.ClinicalImpressionFinding = ClinicalImpressionFinding;
|
|
383
|
+
class AllergyIntolerance extends Resource {
|
|
384
|
+
}
|
|
385
|
+
exports.AllergyIntolerance = AllergyIntolerance;
|
|
386
|
+
class AllergyIntoleranceReaction extends BackboneElement {
|
|
387
|
+
}
|
|
388
|
+
exports.AllergyIntoleranceReaction = AllergyIntoleranceReaction;
|
|
389
|
+
class Age extends FHIRElement {
|
|
390
|
+
}
|
|
391
|
+
exports.Age = Age;
|
package/package.json
CHANGED
package/src/FHIR-R3.ts
CHANGED
|
@@ -115,7 +115,7 @@ export class Address extends FHIRElement {
|
|
|
115
115
|
|
|
116
116
|
export class Meta extends FHIRElement {
|
|
117
117
|
versionId: string;
|
|
118
|
-
lastUpdated: string;
|
|
118
|
+
lastUpdated: string | Date;
|
|
119
119
|
profile: string;
|
|
120
120
|
security: Coding;
|
|
121
121
|
tag: Coding;
|
|
@@ -127,8 +127,8 @@ export class CodeableConcept extends FHIRElement {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
export class Period extends FHIRElement {
|
|
130
|
-
start: string;
|
|
131
|
-
end: string;
|
|
130
|
+
start: string | Date;
|
|
131
|
+
end: string | Date;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export class Quantity extends FHIRElement {
|
|
@@ -466,8 +466,8 @@ export class Restriction extends BackboneElement {
|
|
|
466
466
|
export class AvailableTime extends BackboneElement {
|
|
467
467
|
daysOfWeek: string[];
|
|
468
468
|
allDay: boolean;
|
|
469
|
-
availableStartTime: string;
|
|
470
|
-
availableEndTime: string;
|
|
469
|
+
availableStartTime: string | Date;
|
|
470
|
+
availableEndTime: string | Date;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
export class NotAvailable extends BackboneElement {
|
|
@@ -656,12 +656,12 @@ export class Questionnaire extends Resource {
|
|
|
656
656
|
// TODO - fix Code and change status to type Code
|
|
657
657
|
status: string;
|
|
658
658
|
experimental: boolean;
|
|
659
|
-
date: string;
|
|
659
|
+
date: string | Date;
|
|
660
660
|
publisher: string;
|
|
661
661
|
description: string;
|
|
662
662
|
purpose: string;
|
|
663
|
-
rovalDate: string;
|
|
664
|
-
lastReviewedDate: string;
|
|
663
|
+
rovalDate: string | Date;
|
|
664
|
+
lastReviewedDate: string | Date;
|
|
665
665
|
effectivePeriod: Period;
|
|
666
666
|
useContext: UsageContext[];
|
|
667
667
|
jurisdiction: CodeableConcept[];
|
|
@@ -679,7 +679,7 @@ export class Patient extends Resource {
|
|
|
679
679
|
name: HumanName[];
|
|
680
680
|
telecom: ContactPoint[];
|
|
681
681
|
gender: Code;
|
|
682
|
-
birthDate: string;
|
|
682
|
+
birthDate: string | Date;
|
|
683
683
|
address: Address;
|
|
684
684
|
maritalStatus: CodeableConcept;
|
|
685
685
|
contact: Contact[];
|
|
@@ -959,7 +959,7 @@ export class Practitioner extends Resource {
|
|
|
959
959
|
telecom: ContactPoint[];
|
|
960
960
|
address: Address[];
|
|
961
961
|
gender: string;
|
|
962
|
-
birthDate: string;
|
|
962
|
+
birthDate: string | Date;
|
|
963
963
|
photo: Attachment[];
|
|
964
964
|
qualification: Qualification[];
|
|
965
965
|
communication: CodeableConcept[];
|
|
@@ -1027,13 +1027,13 @@ export class Immunization extends Resource {
|
|
|
1027
1027
|
vaccineCode: CodeableConcept;
|
|
1028
1028
|
patient: Reference;
|
|
1029
1029
|
encounter: Reference;
|
|
1030
|
-
date: string;
|
|
1030
|
+
date: string | Date;
|
|
1031
1031
|
primarySource: boolean;
|
|
1032
1032
|
reportOrigin: CodeableConcept;
|
|
1033
1033
|
location: Reference;
|
|
1034
1034
|
manufacturer: Reference;
|
|
1035
1035
|
lotNumber: string;
|
|
1036
|
-
expirationDate: string;
|
|
1036
|
+
expirationDate: string | Date;
|
|
1037
1037
|
site: CodeableConcept;
|
|
1038
1038
|
route: CodeableConcept;
|
|
1039
1039
|
doseQuantity: DoseCoding;
|
|
@@ -1053,7 +1053,7 @@ export class CommunicationRequest extends Resource {
|
|
|
1053
1053
|
priority: string;
|
|
1054
1054
|
medium: CodeableConcept[];
|
|
1055
1055
|
subject: Reference;
|
|
1056
|
-
|
|
1056
|
+
recipient: Reference[];
|
|
1057
1057
|
topic: Reference[];
|
|
1058
1058
|
context: Reference[];
|
|
1059
1059
|
payload: Payload[];
|
|
@@ -1153,9 +1153,9 @@ export class ClinicalImpression extends Resource {
|
|
|
1153
1153
|
description: string;
|
|
1154
1154
|
subject: Reference;
|
|
1155
1155
|
context: Reference;
|
|
1156
|
-
effectiveDateTime: string;
|
|
1156
|
+
effectiveDateTime: string | Date;
|
|
1157
1157
|
effectivePeriod: Period;
|
|
1158
|
-
date: string;
|
|
1158
|
+
date: string | Date;
|
|
1159
1159
|
assessor: Reference;
|
|
1160
1160
|
previous: Reference;
|
|
1161
1161
|
problem: Reference[];
|
|
@@ -1180,4 +1180,42 @@ export class ClinicalImpressionFinding extends BackboneElement {
|
|
|
1180
1180
|
itemReference: Reference;
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
|
+
export class AllergyIntolerance extends Resource {
|
|
1184
|
+
identifier: Identifier[];
|
|
1185
|
+
clinicalStatus: Code;
|
|
1186
|
+
verificationStatus: Code;
|
|
1187
|
+
type: Code;
|
|
1188
|
+
category: Code[];
|
|
1189
|
+
critically: Code;
|
|
1190
|
+
code: CodeableConcept;
|
|
1191
|
+
patient: Reference;
|
|
1192
|
+
onsetDateTime: Date | string;
|
|
1193
|
+
onsetAge: Age;
|
|
1194
|
+
onsetPeriod: Period;
|
|
1195
|
+
onsetRange: Range;
|
|
1196
|
+
onsetString: string;
|
|
1197
|
+
assertedDate: Date | string;
|
|
1198
|
+
recorder: Reference;
|
|
1199
|
+
asserted: Reference;
|
|
1200
|
+
lastOccurrence: Date | string;
|
|
1201
|
+
note: Annotation[];
|
|
1202
|
+
reaction: AllergyIntoleranceReaction[];
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
export class AllergyIntoleranceReaction extends BackboneElement {
|
|
1206
|
+
substance: CodeableConcept;
|
|
1207
|
+
manifestation: CodeableConcept[];
|
|
1208
|
+
description: string;
|
|
1209
|
+
onset: Date | string;
|
|
1210
|
+
severity: Code;
|
|
1211
|
+
exposureRoute: CodeableConcept;
|
|
1212
|
+
note: Annotation[];
|
|
1213
|
+
}
|
|
1183
1214
|
|
|
1215
|
+
export class Age extends FHIRElement {
|
|
1216
|
+
value: number;
|
|
1217
|
+
comparator: '<' | '<=' | '>=' | '>';
|
|
1218
|
+
unit: string;
|
|
1219
|
+
system: string;
|
|
1220
|
+
code: Code;
|
|
1221
|
+
}
|