@smile-cdr/fhirts 1.4.1 → 1.4.4

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,22 @@
1
1
  # Changelog
2
+ ## 1.4.4
3
+
4
+ ### Updates (R3)
5
+
6
+ * Fixed typo in `CommunicationRequest.recipient` (was previously `CommunicationRequest.recipent`)
7
+
8
+ ## 1.4.3
9
+
10
+ ### Updates (R4)
11
+
12
+ * Updated `_short` property to `short` used in `elementDefinition.ts` for R4.
13
+ * Updated `_abstract` property to `abstract` used in `structureDefinition.ts, valueSetContains.ts and IStructureDefinition.ts` for R4.
14
+
15
+ ## 1.4.2
16
+
17
+ ### Updates (R3)
18
+
19
+ * Removed `Id` type used by `Meta.versionId` and changed to `string`.
2
20
 
3
21
  ## 1.4.1
4
22
 
package/README.md CHANGED
@@ -1,6 +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
+ ![npm](https://img.shields.io/npm/v/@smile-cdr/fhirts) ![workflow](https://github.com/smilecdr/FHIR.ts/actions/workflows/npm-publish.yml/badge.svg) [![NPM](https://img.shields.io/npm/l/@smile-cdr/fhirts)](./LICENSE)
4
4
 
5
5
  ## About
6
6
 
@@ -33,3 +33,5 @@ Checkout the [Getting Started section](GETTINGSTARTED.md) for how to use the lib
33
33
  4. Push changes & create a Pull Request.
34
34
 
35
35
 
36
+
37
+
package/dist/FHIR-R3.d.ts CHANGED
@@ -5,10 +5,6 @@ export declare class FHIRElement {
5
5
  export declare class BackboneElement extends FHIRElement {
6
6
  modifierExtension: any;
7
7
  }
8
- export declare class Id {
9
- private id;
10
- constructor(input?: string);
11
- }
12
8
  export declare class DomainResource {
13
9
  text: Narrative;
14
10
  contained: Resource[];
@@ -83,7 +79,7 @@ export declare class Address extends FHIRElement {
83
79
  period: Period;
84
80
  }
85
81
  export declare class Meta extends FHIRElement {
86
- versionId: Id;
82
+ versionId: string;
87
83
  lastUpdated: string;
88
84
  profile: string;
89
85
  security: Coding;
@@ -889,7 +885,7 @@ export declare class CommunicationRequest extends Resource {
889
885
  priority: string;
890
886
  medium: CodeableConcept[];
891
887
  subject: Reference;
892
- recipent: Reference[];
888
+ recipient: Reference[];
893
889
  topic: Reference[];
894
890
  context: Reference[];
895
891
  payload: Payload[];
package/dist/FHIR-R3.js CHANGED
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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
+ 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;
6
5
  /* This is base class from which other elements are derived */
7
6
  class FHIRElement {
8
7
  }
@@ -11,18 +10,6 @@ class BackboneElement extends FHIRElement {
11
10
  }
12
11
  exports.BackboneElement = BackboneElement;
13
12
  /* FHIR classes used in resources */
14
- class Id {
15
- constructor(input) {
16
- const re = new RegExp('[A-Za-z0-9\\-\\.]{1,64}');
17
- if (re.test(input)) {
18
- this.id = input;
19
- }
20
- else {
21
- throw new RangeError('Not a valid Id string - must match reg exp [A-Za-z0-9\\-\\.]{1,64} Was provided: ' + input);
22
- }
23
- }
24
- }
25
- exports.Id = Id;
26
13
  class DomainResource {
27
14
  }
28
15
  exports.DomainResource = DomainResource;
@@ -98,7 +98,7 @@ export declare class ElementDefinition {
98
98
  /**
99
99
  * A concise description of what this element means (e.g. for use in autogenerated summaries).
100
100
  */
101
- _short?: string;
101
+ short?: string;
102
102
  /**
103
103
  * Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource. (Note: The text you are reading is specified in ElementDefinition.definition).
104
104
  */
@@ -141,7 +141,7 @@ export declare class StructureDefinition {
141
141
  /**
142
142
  * Whether structure this definition describes is abstract or not - that is, whether the structure is not intended to be instantiated. For Resources and Data types, abstract types will never be exchanged between systems.
143
143
  */
144
- _abstract?: boolean;
144
+ abstract?: boolean;
145
145
  /**
146
146
  * Identifies the types of resource or data type elements to which the extension can be applied.
147
147
  */
@@ -36,7 +36,7 @@ export declare class ValueSetContains {
36
36
  /**
37
37
  * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.
38
38
  */
39
- _abstract?: boolean;
39
+ abstract?: boolean;
40
40
  /**
41
41
  * If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).
42
42
  */
@@ -141,7 +141,7 @@ export interface IStructureDefinition {
141
141
  /**
142
142
  * Whether structure this definition describes is abstract or not - that is, whether the structure is not intended to be instantiated. For Resources and Data types, abstract types will never be exchanged between systems.
143
143
  */
144
- _abstract?: boolean;
144
+ abstract?: boolean;
145
145
  /**
146
146
  * Identifies the types of resource or data type elements to which the extension can be applied.
147
147
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smile-cdr/fhirts",
3
- "version": "1.4.1",
3
+ "version": "1.4.4",
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
@@ -8,19 +8,6 @@ export class BackboneElement extends FHIRElement {
8
8
  modifierExtension: any;
9
9
  }
10
10
  /* FHIR classes used in resources */
11
- export class Id {
12
- private id: string;
13
-
14
- constructor(input?: string) {
15
- const re = new RegExp('[A-Za-z0-9\\-\\.]{1,64}');
16
-
17
- if (re.test(input)) {
18
- this.id = input;
19
- } else {
20
- throw new RangeError('Not a valid Id string - must match reg exp [A-Za-z0-9\\-\\.]{1,64} Was provided: ' + input);
21
- }
22
- }
23
- }
24
11
 
25
12
  export class DomainResource {
26
13
  text: Narrative;
@@ -127,7 +114,7 @@ export class Address extends FHIRElement {
127
114
  }
128
115
 
129
116
  export class Meta extends FHIRElement {
130
- versionId: Id;
117
+ versionId: string;
131
118
  lastUpdated: string;
132
119
  profile: string;
133
120
  security: Coding;
@@ -1066,7 +1053,7 @@ export class CommunicationRequest extends Resource {
1066
1053
  priority: string;
1067
1054
  medium: CodeableConcept[];
1068
1055
  subject: Reference;
1069
- recipent: Reference[];
1056
+ recipient: Reference[];
1070
1057
  topic: Reference[];
1071
1058
  context: Reference[];
1072
1059
  payload: Payload[];
@@ -100,7 +100,7 @@ export class ElementDefinition {
100
100
  /**
101
101
  * A concise description of what this element means (e.g. for use in autogenerated summaries).
102
102
  */
103
- _short?: string;
103
+ short?: string;
104
104
  /**
105
105
  * Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource. (Note: The text you are reading is specified in ElementDefinition.definition).
106
106
  */
@@ -144,7 +144,7 @@ export class StructureDefinition {
144
144
  /**
145
145
  * Whether structure this definition describes is abstract or not - that is, whether the structure is not intended to be instantiated. For Resources and Data types, abstract types will never be exchanged between systems.
146
146
  */
147
- _abstract?: boolean;
147
+ abstract?: boolean;
148
148
  /**
149
149
  * Identifies the types of resource or data type elements to which the extension can be applied.
150
150
  */
@@ -38,7 +38,7 @@ export class ValueSetContains {
38
38
  /**
39
39
  * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.
40
40
  */
41
- _abstract?: boolean;
41
+ abstract?: boolean;
42
42
  /**
43
43
  * If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).
44
44
  */
@@ -144,7 +144,7 @@ export interface IStructureDefinition {
144
144
  /**
145
145
  * Whether structure this definition describes is abstract or not - that is, whether the structure is not intended to be instantiated. For Resources and Data types, abstract types will never be exchanged between systems.
146
146
  */
147
- _abstract?: boolean;
147
+ abstract?: boolean;
148
148
  /**
149
149
  * Identifies the types of resource or data type elements to which the extension can be applied.
150
150
  */