@smile-cdr/fhirts 1.2.6 → 1.2.10

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,4 +1,35 @@
1
1
  # Changelog
2
+
3
+ ## 1.2.10
4
+ ---
5
+
6
+ ### Updates (R3)
7
+
8
+ * Added class for `Slot` resource.
9
+
10
+
11
+ ## 1.2.9
12
+ ---
13
+
14
+ ### Updates (R3)
15
+
16
+ * Fixed a type in the `Restriction` resource, where `period` was written as `preiod`
17
+ ## 1.2.8
18
+ ---
19
+ ### Updates (R4)
20
+
21
+ * Instances of `_for` have been replaced with `for` for the following resources:
22
+
23
+ * Task
24
+
25
+ ## 1.2.7
26
+ ---
27
+ ### Updates (R4)
28
+
29
+ * Instances of `status` and `intent` made required according to FHIR spec:
30
+
31
+ * MedicationRequest
32
+
2
33
  ## 1.2.6
3
34
  ---
4
35
  ### Updates (R4)
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 {
@@ -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;
@@ -66,7 +66,7 @@ export declare class MedicationRequest {
66
66
  /**
67
67
  * A code specifying the current state of the order. Generally, this will be active or completed state.
68
68
  */
69
- status?: Code;
69
+ status: Code;
70
70
  /**
71
71
  * Captures the reason for the current state of the MedicationRequest.
72
72
  */
@@ -74,7 +74,7 @@ export declare class MedicationRequest {
74
74
  /**
75
75
  * Whether the request is a proposal, plan, or an original order.
76
76
  */
77
- intent?: Code;
77
+ intent: Code;
78
78
  /**
79
79
  * Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).
80
80
  */
@@ -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
  */
@@ -66,7 +66,7 @@ export interface IMedicationRequest {
66
66
  /**
67
67
  * A code specifying the current state of the order. Generally, this will be active or completed state.
68
68
  */
69
- status?: Code;
69
+ status: Code;
70
70
  /**
71
71
  * Captures the reason for the current state of the MedicationRequest.
72
72
  */
@@ -74,7 +74,7 @@ export interface IMedicationRequest {
74
74
  /**
75
75
  * Whether the request is a proposal, plan, or an original order.
76
76
  */
77
- intent?: Code;
77
+ intent: Code;
78
78
  /**
79
79
  * Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).
80
80
  */
@@ -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.6",
3
+ "version": "1.2.10",
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
 
@@ -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
 
@@ -69,7 +69,7 @@ export class MedicationRequest {
69
69
  /**
70
70
  * A code specifying the current state of the order. Generally, this will be active or completed state.
71
71
  */
72
- status?: Code;
72
+ status: Code;
73
73
  /**
74
74
  * Captures the reason for the current state of the MedicationRequest.
75
75
  */
@@ -77,7 +77,7 @@ export class MedicationRequest {
77
77
  /**
78
78
  * Whether the request is a proposal, plan, or an original order.
79
79
  */
80
- intent?: Code;
80
+ intent: Code;
81
81
  /**
82
82
  * Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).
83
83
  */
@@ -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
  */
@@ -69,7 +69,7 @@ export interface IMedicationRequest {
69
69
  /**
70
70
  * A code specifying the current state of the order. Generally, this will be active or completed state.
71
71
  */
72
- status?: Code;
72
+ status: Code;
73
73
  /**
74
74
  * Captures the reason for the current state of the MedicationRequest.
75
75
  */
@@ -77,7 +77,7 @@ export interface IMedicationRequest {
77
77
  /**
78
78
  * Whether the request is a proposal, plan, or an original order.
79
79
  */
80
- intent?: Code;
80
+ intent: Code;
81
81
  /**
82
82
  * Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).
83
83
  */
@@ -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
  */