@smile-cdr/fhirts 1.4.0 → 1.4.3
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/.github/workflows/npm-publish.yml +3 -0
- package/CHANGELOG.md +21 -2
- package/README.md +3 -1
- package/dist/FHIR-R3.d.ts +3 -5
- package/dist/FHIR-R3.js +2 -15
- package/dist/FHIR-R4/classes/elementDefinition.d.ts +1 -1
- package/dist/FHIR-R4/classes/structureDefinition.d.ts +1 -1
- package/dist/FHIR-R4/classes/valueSetContains.d.ts +1 -1
- package/dist/FHIR-R4/interfaces/IStructureDefinition.d.ts +1 -1
- package/package.json +1 -2
- package/src/FHIR-R3.ts +3 -14
- package/src/FHIR-R4/classes/elementDefinition.ts +1 -1
- package/src/FHIR-R4/classes/structureDefinition.ts +1 -1
- package/src/FHIR-R4/classes/valueSetContains.ts +1 -1
- package/src/FHIR-R4/interfaces/IStructureDefinition.ts +1 -1
- package/.changeset/README.md +0 -8
- package/.changeset/blue-ducks-grow.md +0 -8
- package/.changeset/config.json +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 1.4.
|
|
3
|
+
## 1.4.3
|
|
4
|
+
|
|
5
|
+
### Updates (R4)
|
|
6
|
+
|
|
7
|
+
* Updated `_short` property to `short` used in `elementDefinition.ts` for R4.
|
|
8
|
+
* Updated `_abstract` property to `abstract` used in `structureDefinition.ts, valueSetContains.ts and IStructureDefinition.ts` for R4.
|
|
9
|
+
|
|
10
|
+
## 1.4.2
|
|
11
|
+
|
|
12
|
+
### Updates (R3)
|
|
4
13
|
|
|
14
|
+
* Removed `Id` type used by `Meta.versionId` and changed to `string`.
|
|
15
|
+
|
|
16
|
+
## 1.4.1
|
|
17
|
+
|
|
18
|
+
### Updates (R3)
|
|
19
|
+
|
|
20
|
+
* Added support for nested `QuestionnaireResponseItem` in `QuestionnaireResponse.item` and `QuestionnaireResponse.item.answer`.
|
|
21
|
+
|
|
22
|
+
## 1.4.0
|
|
23
|
+
---
|
|
5
24
|
### Updates (R3)
|
|
6
25
|
|
|
7
26
|
* The `Participant` class has been re-tooled to only be used in the `Appointment` class
|
|
@@ -160,4 +179,4 @@ This release introduces a breaking change for Encounter.If you're using `Encount
|
|
|
160
179
|
|
|
161
180
|
### Updates (R4)
|
|
162
181
|
|
|
163
|
-
* All classes previously created have been replaced with classes generated from swagger
|
|
182
|
+
* All classes previously created have been replaced with classes generated from swagger
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FHIR TypeScript / JavaScript Library For Front End Applications
|
|
2
2
|
|
|
3
|
-
 
|
|
3
|
+
  [](./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:
|
|
82
|
+
versionId: string;
|
|
87
83
|
lastUpdated: string;
|
|
88
84
|
profile: string;
|
|
89
85
|
security: Coding;
|
|
@@ -236,6 +232,7 @@ export declare class Answer extends BackboneElement {
|
|
|
236
232
|
valueQuantity: Quantity;
|
|
237
233
|
valueBoolean: boolean;
|
|
238
234
|
valueReference: Reference;
|
|
235
|
+
item: QuestionnaireResponseItem[];
|
|
239
236
|
}
|
|
240
237
|
export declare class FHIROption extends BackboneElement {
|
|
241
238
|
value: any;
|
|
@@ -424,6 +421,7 @@ export declare class QuestionnaireResponseItem extends BackboneElement {
|
|
|
424
421
|
definition: string;
|
|
425
422
|
text: string;
|
|
426
423
|
answer: Answer[];
|
|
424
|
+
item: QuestionnaireResponseItem[];
|
|
427
425
|
}
|
|
428
426
|
export declare class Item extends BackboneElement {
|
|
429
427
|
linkId: string;
|
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.
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "Fhir ts/js library for frontend apps",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"build": "tsc"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@changesets/cli": "^2.21.0",
|
|
14
13
|
"typescript": "^4.0.2"
|
|
15
14
|
}
|
|
16
15
|
}
|
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:
|
|
117
|
+
versionId: string;
|
|
131
118
|
lastUpdated: string;
|
|
132
119
|
profile: string;
|
|
133
120
|
security: Coding;
|
|
@@ -339,6 +326,7 @@ export class Answer extends BackboneElement {
|
|
|
339
326
|
valueQuantity: Quantity;
|
|
340
327
|
valueBoolean: boolean;
|
|
341
328
|
valueReference: Reference;
|
|
329
|
+
item: QuestionnaireResponseItem[];
|
|
342
330
|
}
|
|
343
331
|
|
|
344
332
|
|
|
@@ -566,6 +554,7 @@ export class QuestionnaireResponseItem extends BackboneElement {
|
|
|
566
554
|
definition: string;
|
|
567
555
|
text: string;
|
|
568
556
|
answer: Answer[];
|
|
557
|
+
item: QuestionnaireResponseItem[];
|
|
569
558
|
}
|
|
570
559
|
|
|
571
560
|
export class Item extends BackboneElement {
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
*/
|
package/.changeset/README.md
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Changesets
|
|
2
|
-
|
|
3
|
-
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
-
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
-
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
6
|
-
|
|
7
|
-
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
-
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
|
package/.changeset/config.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://unpkg.com/@changesets/config@1.7.0/schema.json",
|
|
3
|
-
"changelog": "@changesets/cli/changelog",
|
|
4
|
-
"commit": false,
|
|
5
|
-
"fixed": [],
|
|
6
|
-
"linked": [],
|
|
7
|
-
"access": "restricted",
|
|
8
|
-
"baseBranch": "master",
|
|
9
|
-
"updateInternalDependencies": "patch",
|
|
10
|
-
"ignore": []
|
|
11
|
-
}
|