- Fixed issue with
ResourceUtils.getValuesAtResourcePath
not checking if the root of the path matches the resource type.
- Added
BundleUtils.getResourceByFullUrl
to get a resource by its full url from a bundle.
- Fixed issue with
ResourceUtils.getValuesAtResourcePath
not being able to get an array with values if path exists for a top level element and is an object.
- Fixed issue with
ResourceUtils.getValuesAtResourcePath
not being able to get an array with values if path exists for a top level element and is an array.
- Added
Condition
resource definition.
- Added
PatchUtils
for generating Parameters resource forFHIR Patch
.
- Added resource definitions for FHIR R5.
- Update
ResourceUtils
with strong typing to catch incorrect input data types for all FHIR versions. - Update some cardinalities for base data types and structures
- Add
QueryBuilder
for ease of generating queries.
- Fix issue with
BundleUtils.getResourceFromBundle
not being able get the values inside nested array under array of objects.
- Remove static classes for
BundleUtilities
&ResourceUtilities
to non static classesBundleUtils
&ResourceUtils.
- Add missing properties to
Bundle
DocumentReference.docStatus
andDocumentReference.status
properties have codes defined.
DocumentReference.docStatus
has codes defined andDocumentReference.status
is a required property (as per the spec).
Encounter
class now has all properties defined.
OperationOutcome
class now hasid
set to typestring
.Resource
class should now supportid
.
Bundle
class now hasid
set to typestring
.
Resource
Type now hasid
set to typestring
.- Classes and Interfaces now accept
Date
types asDate | string
.
- Added support for
ValueSet
resource.
- Introduce utilities for generic usages. Read more about usage here Getting Started section.
- Added a
ResourceList
type for codes which are part of the ResourceTypes codesystem - Updated
Required
status for: MessageDefinition.focus.code, CapabilityStatement.rest.resource.type, GraphDefinition.start, GraphDefinition.link.target.type, ImplementationGuide.global.type, SearchParameter.base, SearchParameter.target, OperationDefinition.resource, CompartmentDefinition.resource.code, ExampleScenario.instance.resourceType - Changed
BundleEntry.resource
and other uses of genericResource
to a union type which supports inference and narrowing. - Correct type for
ParametersParameter.resource
- Made a generic
Resource
type which is a union of all other resources to allow type narrowing when working with Bundles and Contained Resources. For example:
const res = bundle.entry[0].resource
// res -> fhirR3.Resource
if(res.resourceType === 'Organization'){
// TypeScript will infer the type of Organization automatically
// res -> fhirR3.Organization
- Made
resourceType
arequired
for Resource for R4.
- Fixed property
asserted
toasserter
for AllergyIntolerance resource.
- Added AllergyIntolerance resource.
- Added optional date type properties to FHIR dateTime/Date properties for easier parsing on the front-end side.
- Fixed typo in
CommunicationRequest.recipient
(was previouslyCommunicationRequest.recipent
)
- Updated
_short
property toshort
used inelementDefinition.ts
for R4. - Updated
_abstract
property toabstract
used instructureDefinition.ts, valueSetContains.ts and IStructureDefinition.ts
for R4.
- Removed
Id
type used byMeta.versionId
and changed tostring
.
- Added support for nested
QuestionnaireResponseItem
inQuestionnaireResponse.item
andQuestionnaireResponse.item.answer
.
- The
Participant
class has been re-tooled to only be used in theAppointment
class - Droped the
Period
field in theParticipant
class as it is not used inAppointment.participant
- Added
EncounterParticipant
to replace the class type inEncounter.participant
EncounterParticipant
follows the STU3 spec forEncounter.participant
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.
- Added class for
ClinicalImpression
resource.
- Added initial classes for DSTU2.
- Fixed an issue where BundleResponse.location was of type
number
instead of typestring
- Added class for
Slot
resource.
- Fixed a type in the
Restriction
resource, whereperiod
was written aspreiod
-
Instances of
_for
have been replaced withfor
for the following resources:- Task
-
Instances of
status
andintent
made required according to FHIR spec:- MedicationRequest
-
Instances of
status
made required according to FHIR spec:- Observation
- A GETTINGSTARTED guide has now been implemented to introduce the library to new users
- Updated compiler to ES6
- Updated README
-
Instances of
_function
have been replaced withfunction
for the following resources:- ProcedurePerformer
- MedicationDispensePerformer
- MedicationAdministrationPerformer
- ImmunizationPerformer
- ImagingStudyPerformer
- ChargeItemPerformer
classes
andinterfaces
both are now available for FHIR R4 resources.
- A CHANGELOG has now been implemented to better track updates made to the library
-
The
Extension
resource previous assigned all value[x] to typestring
. This has been corrected. Below is the list of all value types affected:valueCanonical
now requires aCanonical
objectvalueCode
now requires aCode
objectvalueInstant
now requires aInstant
objectvalueAddress
now requires aAddress
objectvalueAnnotation
now requires aAnnotation
objectvalueAttachment
now requires aAttachment
objectvalueCodeableConcept
now requires aCodeableConcept
objectvalueContactPoint
now requires aContactPoint
objectvalueHumanName
now requires aHumanName
objectvalueMoney
now requires aMoney
objectvaluePeriod
now requires aPeriod
objectvalueQuantity
now requires aIdentifier
objectvalueRange
now requires aRange
objectvalueRatio
now requires aRatio
objectvalueReference
now requires aReference
objectvalueSampledData
now requires aSampledData
objectvalueSignature
now requires aSignature
objectvalueContactDetail
now requires aContactDetail
objectvalueContributor
now requires aContributor
objectvalueDataRequirement
now requires aTiming
objectvalueExpression
now requires aDataRequirement
objectvalueParameterDefinition
now requires aExpression
objectvalueRelatedArtifact
now requires aParameterDefinition
objectvalueTriggerDefinition
now requires aTriggerDefinition
objectvalueDosage
now requires aDosage
object
-
All instances of
_class
have been replaced withclass
. This affects the following:- ConsentProvision
- Coverage
- Encounter
- EncounterClassHistory
- SubstancePolymer
- SubstanceSourceMaterialOrganismGeneral
- Updated spelling error in documentation
- Updated example in documentation
- Updated FHIR.ts file to FHIR-R3.ts
- All classes previously created have been replaced with classes generated from swagger