@smile-cdr/fhirts 1.3.0 → 1.4.1

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.
@@ -7,6 +7,9 @@ on:
7
7
  push:
8
8
  branches:
9
9
  - master
10
+ paths-ignore:
11
+ - '**.md'
12
+ - '**.yml'
10
13
 
11
14
  jobs:
12
15
  release:
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Updates (R3)
6
+
7
+ * Added support for nested `QuestionnaireResponseItem` in `QuestionnaireResponse.item` and `QuestionnaireResponse.item.answer`.
8
+
9
+ ## 1.4.0
10
+ ---
11
+ ### Updates (R3)
12
+
13
+ * The `Participant` class has been re-tooled to only be used in the `Appointment` class
14
+ * Droped the `Period` field in the `Participant` class as it is not used in `Appointment.participant`
15
+ * Added `EncounterParticipant` to replace the class type in `Encounter.participant`
16
+ * `EncounterParticipant` follows the STU3 spec for `Encounter.participant`
17
+
18
+ This release introduces a breaking change for Encounter.If you're using `Encounter` in your code, the `participant` field will have a new type, `EncounterParticipant` with the appropriate changes. This will break existing implementations, unless they are updated to take advantage of the new `EncounterParticipant` class. The `Period` in the `Participant` class has been removed as it's not using by the `Appointment.participant` field.
19
+
20
+ ## 1.3.1
21
+ ---
22
+ ### Updates (R3)
23
+
24
+ * Added class for `ClinicalImpression` resource.
25
+
3
26
  ## 1.3.0
4
27
 
5
28
  ### Updates (DSTU2)
@@ -143,4 +166,4 @@
143
166
 
144
167
  ### Updates (R4)
145
168
 
146
- * All classes previously created have been replaced with classes generated from swagger
169
+ * All classes previously created have been replaced with classes generated from swagger
package/dist/FHIR-R3.d.ts CHANGED
@@ -236,6 +236,7 @@ export declare class Answer extends BackboneElement {
236
236
  valueQuantity: Quantity;
237
237
  valueBoolean: boolean;
238
238
  valueReference: Reference;
239
+ item: QuestionnaireResponseItem[];
239
240
  }
240
241
  export declare class FHIROption extends BackboneElement {
241
242
  value: any;
@@ -273,6 +274,10 @@ export declare class Participant extends BackboneElement {
273
274
  actor: Reference;
274
275
  required: string;
275
276
  status: string;
277
+ }
278
+ export declare class EncounterParticipant extends BackboneElement {
279
+ type: CodeableConcept[];
280
+ individual: Reference;
276
281
  period: Period;
277
282
  }
278
283
  export declare class Activity extends BackboneElement {
@@ -420,6 +425,7 @@ export declare class QuestionnaireResponseItem extends BackboneElement {
420
425
  definition: string;
421
426
  text: string;
422
427
  answer: Answer[];
428
+ item: QuestionnaireResponseItem[];
423
429
  }
424
430
  export declare class Item extends BackboneElement {
425
431
  linkId: string;
@@ -649,7 +655,7 @@ export declare class Encounter extends Resource {
649
655
  status: string;
650
656
  episodeOfCare: Reference[];
651
657
  subject: Reference;
652
- participant: Participant[];
658
+ participant: EncounterParticipant[];
653
659
  }
654
660
  export declare class CareTeamParticipant extends BackboneElement {
655
661
  role: CodeableConcept;
@@ -969,4 +975,35 @@ export declare class Slot extends Resource {
969
975
  overbooked: boolean;
970
976
  comment: string;
971
977
  }
978
+ export declare class ClinicalImpression extends Resource {
979
+ identifier: Identifier[];
980
+ status: string;
981
+ code: CodeableConcept;
982
+ description: string;
983
+ subject: Reference;
984
+ context: Reference;
985
+ effectiveDateTime: string;
986
+ effectivePeriod: Period;
987
+ date: string;
988
+ assessor: Reference;
989
+ previous: Reference;
990
+ problem: Reference[];
991
+ investigation: ClinicalImpressionInvestigation[];
992
+ protocol: string[];
993
+ summary: string;
994
+ finding: ClinicalImpressionFinding[];
995
+ prognosisCodeableConcept: CodeableConcept[];
996
+ prognosisReference: Reference[];
997
+ action: Reference[];
998
+ note: Annotation[];
999
+ }
1000
+ export declare class ClinicalImpressionInvestigation extends BackboneElement {
1001
+ code: CodeableConcept;
1002
+ item: Reference[];
1003
+ }
1004
+ export declare class ClinicalImpressionFinding extends BackboneElement {
1005
+ basis: string;
1006
+ itemCodeableConcept: CodeableConcept;
1007
+ itemReference: Reference;
1008
+ }
972
1009
  export {};
package/dist/FHIR-R3.js CHANGED
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Restriction = exports.SampledData = exports.Output = exports.Input = exports.Range = exports.Ratio = exports.Component = exports.Timing = exports.Activity = 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.Id = exports.BackboneElement = exports.FHIRElement = void 0;
4
- 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;
3
+ 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.Id = exports.BackboneElement = exports.FHIRElement = void 0;
4
+ 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 = exports.Restriction = void 0;
5
+ exports.ClinicalImpressionFinding = void 0;
5
6
  /* This is base class from which other elements are derived */
6
7
  class FHIRElement {
7
8
  }
@@ -211,6 +212,9 @@ exports.ReferenceRange = ReferenceRange;
211
212
  class Participant extends BackboneElement {
212
213
  }
213
214
  exports.Participant = Participant;
215
+ class EncounterParticipant extends BackboneElement {
216
+ }
217
+ exports.EncounterParticipant = EncounterParticipant;
214
218
  class Activity extends BackboneElement {
215
219
  }
216
220
  exports.Activity = Activity;
@@ -379,3 +383,12 @@ exports.Schedule = Schedule;
379
383
  class Slot extends Resource {
380
384
  }
381
385
  exports.Slot = Slot;
386
+ class ClinicalImpression extends Resource {
387
+ }
388
+ exports.ClinicalImpression = ClinicalImpression;
389
+ class ClinicalImpressionInvestigation extends BackboneElement {
390
+ }
391
+ exports.ClinicalImpressionInvestigation = ClinicalImpressionInvestigation;
392
+ class ClinicalImpressionFinding extends BackboneElement {
393
+ }
394
+ exports.ClinicalImpressionFinding = ClinicalImpressionFinding;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smile-cdr/fhirts",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "Fhir ts/js library for frontend apps",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
package/src/FHIR-R3.ts CHANGED
@@ -339,6 +339,7 @@ export class Answer extends BackboneElement {
339
339
  valueQuantity: Quantity;
340
340
  valueBoolean: boolean;
341
341
  valueReference: Reference;
342
+ item: QuestionnaireResponseItem[];
342
343
  }
343
344
 
344
345
 
@@ -391,8 +392,14 @@ export class Participant extends BackboneElement {
391
392
  actor: Reference;
392
393
  required: string;
393
394
  status: string;
395
+ }
396
+
397
+ export class EncounterParticipant extends BackboneElement {
398
+ type: CodeableConcept[];
399
+ individual: Reference;
394
400
  period: Period;
395
401
  }
402
+
396
403
  export class Activity extends BackboneElement {
397
404
  outcomeCodeableConcept: CodeableConcept[];
398
405
  outcomeReference: Reference[];
@@ -560,6 +567,7 @@ export class QuestionnaireResponseItem extends BackboneElement {
560
567
  definition: string;
561
568
  text: string;
562
569
  answer: Answer[];
570
+ item: QuestionnaireResponseItem[];
563
571
  }
564
572
 
565
573
  export class Item extends BackboneElement {
@@ -810,7 +818,7 @@ export class Encounter extends Resource {
810
818
  status: string;
811
819
  episodeOfCare: Reference[];
812
820
  subject: Reference;
813
- participant: Participant[];
821
+ participant: EncounterParticipant[];
814
822
  }
815
823
 
816
824
  export class CareTeamParticipant extends BackboneElement {
@@ -1151,4 +1159,38 @@ export class Slot extends Resource {
1151
1159
  comment: string;
1152
1160
  }
1153
1161
 
1162
+ export class ClinicalImpression extends Resource {
1163
+ identifier: Identifier[];
1164
+ status: string;
1165
+ code: CodeableConcept;
1166
+ description: string;
1167
+ subject: Reference;
1168
+ context: Reference;
1169
+ effectiveDateTime: string;
1170
+ effectivePeriod: Period;
1171
+ date: string;
1172
+ assessor: Reference;
1173
+ previous: Reference;
1174
+ problem: Reference[];
1175
+ investigation: ClinicalImpressionInvestigation[];
1176
+ protocol: string[];
1177
+ summary: string;
1178
+ finding: ClinicalImpressionFinding[];
1179
+ prognosisCodeableConcept: CodeableConcept[];
1180
+ prognosisReference: Reference[];
1181
+ action: Reference[];
1182
+ note: Annotation[];
1183
+ }
1184
+
1185
+ export class ClinicalImpressionInvestigation extends BackboneElement {
1186
+ code: CodeableConcept;
1187
+ item: Reference[];
1188
+ }
1189
+
1190
+ export class ClinicalImpressionFinding extends BackboneElement {
1191
+ basis: string;
1192
+ itemCodeableConcept: CodeableConcept;
1193
+ itemReference: Reference;
1194
+ }
1195
+
1154
1196