@smile-cdr/fhirts 1.2.7 → 1.2.11

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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.11
4
+ ---
5
+
6
+ ### Updates (R3)
7
+
8
+ * Fixed an issue where BundleResponse.location was of type `number` instead of type `string`
9
+
10
+ ## 1.2.10
11
+ ---
12
+
13
+ ### Updates (R3)
14
+
15
+ * Added class for `Slot` resource.
16
+
17
+
18
+ ## 1.2.9
19
+ ---
20
+
21
+ ### Updates (R3)
22
+
23
+ * Fixed a type in the `Restriction` resource, where `period` was written as `preiod`
24
+ ## 1.2.8
25
+ ---
26
+ ### Updates (R4)
27
+
28
+ * Instances of `_for` have been replaced with `for` for the following resources:
29
+
30
+ * Task
3
31
 
4
32
  ## 1.2.7
5
33
  ---
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # FHIR TypeScript / JavaScript Library For Front End Applications
2
2
 
3
+ ![npm](https://img.shields.io/npm/v/@smile-cdr/fhirts) ![workflow](https://github.com/smilecdr/FHIR.ts/actions/workflows/npm-publish.yml/badge.svg)
3
4
 
4
5
  ## About
5
6
 
package/dist/FHIR-R3.d.ts CHANGED
@@ -337,7 +337,7 @@ export declare class SampledData extends FHIRElement {
337
337
  }
338
338
  export declare class Restriction extends BackboneElement {
339
339
  repetitions: number;
340
- preiod: Period;
340
+ period: Period;
341
341
  recipient: Reference[];
342
342
  }
343
343
  export declare class AvailableTime extends BackboneElement {
@@ -378,7 +378,7 @@ export declare class BundleRequest extends BackboneElement {
378
378
  }
379
379
  export declare class BundleResponse extends BackboneElement {
380
380
  status: string;
381
- location: number;
381
+ location: string;
382
382
  etag: string;
383
383
  lastModified: number;
384
384
  outcome: number;
@@ -956,4 +956,17 @@ export declare class Schedule extends Resource {
956
956
  planningHorizon: Period;
957
957
  comment: string;
958
958
  }
959
+ export declare class Slot extends Resource {
960
+ identifier: Identifier[];
961
+ serviceCategory: CodeableConcept;
962
+ serviceType: CodeableConcept[];
963
+ speciality: CodeableConcept[];
964
+ appointmentType: CodeableConcept;
965
+ schedule: Reference;
966
+ status: string;
967
+ start: string;
968
+ end: string;
969
+ overbooked: boolean;
970
+ comment: string;
971
+ }
959
972
  export {};
package/dist/FHIR-R3.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
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.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.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;
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;
5
5
  /* This is base class from which other elements are derived */
6
6
  class FHIRElement {
7
7
  }
@@ -376,3 +376,6 @@ exports.HealthcareService = HealthcareService;
376
376
  class Schedule extends Resource {
377
377
  }
378
378
  exports.Schedule = Schedule;
379
+ class Slot extends Resource {
380
+ }
381
+ exports.Slot = Slot;
@@ -119,7 +119,7 @@ export declare class Task {
119
119
  /**
120
120
  * The entity who benefits from the performance of the service specified in the task (e.g., the patient).
121
121
  */
122
- _for?: Reference;
122
+ for?: Reference;
123
123
  /**
124
124
  * The healthcare event (e.g. a patient and healthcare provider interaction) during which this task was created.
125
125
  */
@@ -119,7 +119,7 @@ export interface ITask {
119
119
  /**
120
120
  * The entity who benefits from the performance of the service specified in the task (e.g., the patient).
121
121
  */
122
- _for?: Reference;
122
+ for?: Reference;
123
123
  /**
124
124
  * The healthcare event (e.g. a patient and healthcare provider interaction) during which this task was created.
125
125
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smile-cdr/fhirts",
3
- "version": "1.2.7",
3
+ "version": "1.2.11",
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
@@ -465,7 +465,7 @@ export class SampledData extends FHIRElement {
465
465
  }
466
466
  export class Restriction extends BackboneElement {
467
467
  repetitions: number;
468
- preiod: Period;
468
+ period: Period;
469
469
  recipient: Reference[];
470
470
  }
471
471
 
@@ -513,7 +513,7 @@ export class BundleRequest extends BackboneElement {
513
513
 
514
514
  export class BundleResponse extends BackboneElement {
515
515
  status: string;
516
- location: number;
516
+ location: string;
517
517
  etag: string;
518
518
  lastModified: number;
519
519
  outcome: number;
@@ -1137,5 +1137,18 @@ export class Schedule extends Resource {
1137
1137
  comment: string;
1138
1138
  }
1139
1139
 
1140
+ export class Slot extends Resource {
1141
+ identifier: Identifier[];
1142
+ serviceCategory: CodeableConcept;
1143
+ serviceType: CodeableConcept[];
1144
+ speciality: CodeableConcept[];
1145
+ appointmentType: CodeableConcept;
1146
+ schedule: Reference;
1147
+ status: string;
1148
+ start: string;
1149
+ end: string;
1150
+ overbooked: boolean;
1151
+ comment: string;
1152
+ }
1140
1153
 
1141
1154
 
@@ -122,7 +122,7 @@ export class Task {
122
122
  /**
123
123
  * The entity who benefits from the performance of the service specified in the task (e.g., the patient).
124
124
  */
125
- _for?: Reference;
125
+ for?: Reference;
126
126
  /**
127
127
  * The healthcare event (e.g. a patient and healthcare provider interaction) during which this task was created.
128
128
  */
@@ -122,7 +122,7 @@ export interface ITask {
122
122
  /**
123
123
  * The entity who benefits from the performance of the service specified in the task (e.g., the patient).
124
124
  */
125
- _for?: Reference;
125
+ for?: Reference;
126
126
  /**
127
127
  * The healthcare event (e.g. a patient and healthcare provider interaction) during which this task was created.
128
128
  */