Skip to content

Commit

Permalink
Issue with io-ts union - ResourceList properties are deactivated
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahryman40k committed Mar 15, 2019
1 parent 80dee77 commit 7649556
Show file tree
Hide file tree
Showing 151 changed files with 874 additions and 2,285 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,10 @@ const obs: IObservation = <IObservation> schemaValidationResult.value;
FHIR resources are also provided as interface, so you can inherit and implement your own object implementation.

Please don't hesitate to give me advice and feedback !

# Remarks

**Please be carefull:** Until now I encounter an issue with io-ts union. So I remove any references to Resources type union. It means some attributes like contained property have been removed from model.
Help me to solve that issue ! So I can reactivate back.
---

4 changes: 2 additions & 2 deletions src/Resource/RTTI_Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface IAccount {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -201,7 +201,7 @@ export const RTTI_Account: t.Type<IAccount> = t.recursion('IAccount', () =>
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_ActivityDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export interface IActivityDefinition {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -562,7 +562,7 @@ export const RTTI_ActivityDefinition: t.Type<IActivityDefinition> = t.recursion(
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
url: t.string,
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_AdverseEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export interface IAdverseEvent {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -254,7 +254,7 @@ export const RTTI_AdverseEvent: t.Type<IAdverseEvent> = t.recursion('IAdverseEve
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: RTTI_Identifier,
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_AllergyIntolerance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export interface IAllergyIntolerance {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -332,7 +332,7 @@ export const RTTI_AllergyIntolerance: t.Type<IAllergyIntolerance> = t.recursion(
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_Appointment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export interface IAppointment {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -294,7 +294,7 @@ export const RTTI_Appointment: t.Type<IAppointment> = t.recursion('IAppointment'
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_AppointmentResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface IAppointmentResponse {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -174,7 +174,7 @@ export const RTTI_AppointmentResponse: t.Type<IAppointmentResponse> = t.recursio
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_AuditEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export interface IAuditEvent {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -222,7 +222,7 @@ export const RTTI_AuditEvent: t.Type<IAuditEvent> = t.recursion('IAuditEvent', (
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
subtype: t.array(RTTI_Coding),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_Basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface IBasic {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -138,7 +138,7 @@ export const RTTI_Basic: t.Type<IBasic> = t.recursion('IBasic', () =>
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_BiologicallyDerivedProduct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export interface IBiologicallyDerivedProduct {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -210,7 +210,7 @@ export const RTTI_BiologicallyDerivedProduct: t.Type<IBiologicallyDerivedProduct
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_BodyStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface IBodyStructure {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -163,7 +163,7 @@ export const RTTI_BodyStructure: t.Type<IBodyStructure> = t.recursion('IBodyStru
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_Bundle_Entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or
/**
* The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type.
*/
resource?: IResourceList;
// resource?: IResourceList;


/**
Expand Down Expand Up @@ -90,7 +90,7 @@ export const RTTI_Bundle_Entry: t.Type<IBundle_Entry> = t.recursion('IBundle_Ent
link: t.array(RTTI_Bundle_Link),
fullUrl: t.string,
_fullUrl: RTTI_Element,
resource: RTTI_ResourceList,
// resource: RTTI_ResourceList,
search: RTTI_Bundle_Search,
request: RTTI_Bundle_Request,
response: RTTI_Bundle_Response
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_Bundle_Response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or
/**
* An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction.
*/
outcome?: IResourceList;
// outcome?: IResourceList;

}

Expand All @@ -101,7 +101,7 @@ export const RTTI_Bundle_Response: t.Type<IBundle_Response> = t.recursion('IBund
_etag: RTTI_Element,
lastModified: t.string,
_lastModified: RTTI_Element,
outcome: RTTI_ResourceList
// outcome: RTTI_ResourceList
})

);
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_CapabilityStatement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export interface ICapabilityStatement {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -375,7 +375,7 @@ export const RTTI_CapabilityStatement: t.Type<ICapabilityStatement> = t.recursio
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
url: t.string,
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_CarePlan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface ICarePlan {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -281,7 +281,7 @@ export const RTTI_CarePlan: t.Type<ICarePlan> = t.recursion('ICarePlan', () =>
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_CareTeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export interface ICareTeam {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -208,7 +208,7 @@ export const RTTI_CareTeam: t.Type<ICareTeam> = t.recursion('ICareTeam', () =>
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_ChargeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export interface IChargeItem {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -331,7 +331,7 @@ export const RTTI_ChargeItem: t.Type<IChargeItem> = t.recursion('IChargeItem', (
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_ChargeItemDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export interface IChargeItemDefinition {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -329,7 +329,7 @@ export const RTTI_ChargeItemDefinition: t.Type<IChargeItemDefinition> = t.recurs
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
url: t.string,
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_Claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const ClaimUseKindKeys = t.keyof({
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained? : IResourceList[];
// contained? : IResourceList[];


/**
Expand Down Expand Up @@ -301,7 +301,7 @@ _implicitRules: RTTI_Element,
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_ClaimResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import {RTTI_ClaimResponse_Insurance, IClaimResponse_Insurance} from './RTTI_Cla
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained? : IResourceList[];
// contained? : IResourceList[];


/**
Expand Down Expand Up @@ -289,7 +289,7 @@ _implicitRules: RTTI_Element,
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_ClinicalImpression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import {RTTI_Annotation, IAnnotation} from './RTTI_Annotation';
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained? : IResourceList[];
// contained? : IResourceList[];


/**
Expand Down Expand Up @@ -269,7 +269,7 @@ _implicitRules: RTTI_Element,
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
identifier: t.array(RTTI_Identifier),
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/RTTI_CodeSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export interface ICodeSystem {
/**
* These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
*/
contained?: IResourceList[];
// contained?: IResourceList[];


/**
Expand Down Expand Up @@ -400,7 +400,7 @@ export const RTTI_CodeSystem: t.Type<ICodeSystem> = t.recursion('ICodeSystem', (
language: t.string,
_language: RTTI_Element,
text: RTTI_Narrative,
contained: t.array(RTTI_ResourceList),
// contained: t.array(RTTI_ResourceList),
extension: t.array(RTTI_Extension),
modifierExtension: t.array(RTTI_Extension),
url: t.string,
Expand Down
Loading

0 comments on commit 7649556

Please sign in to comment.