-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(resources-generator): mongoose circular dependency warnings
- `module.exporst.${name}` instead of `module.exports` - add `allTypeSchemaTopDef` to export all FHIR types initial schema header - add `FHIRDataTypesSchemaExport` to merge all circular FHIR types' - get importLibs processing to function - check and generate may remove?
- Loading branch information
1 parent
4b97705
commit d02a4ba
Showing
516 changed files
with
26,693 additions
and
864 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const mongoose = require('mongoose'); | ||
const { | ||
Extension | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
const { | ||
Reference | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
const positiveInt = require('../FHIRDataTypesSchema/positiveInt'); | ||
|
||
const { | ||
Account_Coverage | ||
} = require("../FHIRDataTypesSchemaExport/allTypeSchemaTopDef"); | ||
Account_Coverage.add({ | ||
extension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
modifierExtension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
coverage: { | ||
type: Reference, | ||
required: true, | ||
default: void 0 | ||
}, | ||
priority: positiveInt | ||
}); | ||
module.exports.Account_Coverage = Account_Coverage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
const mongoose = require('mongoose'); | ||
const { | ||
Extension | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
const { | ||
Reference | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
const boolean = require('../FHIRDataTypesSchema/boolean'); | ||
const { | ||
Period | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
|
||
const { | ||
Account_Guarantor | ||
} = require("../FHIRDataTypesSchemaExport/allTypeSchemaTopDef"); | ||
Account_Guarantor.add({ | ||
extension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
modifierExtension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
party: { | ||
type: Reference, | ||
required: true, | ||
default: void 0 | ||
}, | ||
onHold: boolean, | ||
period: { | ||
type: Period, | ||
default: void 0 | ||
} | ||
}); | ||
module.exports.Account_Guarantor = Account_Guarantor; |
29 changes: 29 additions & 0 deletions
29
models/mongodb/FHIRDataTypesSchema/ActivityDefinition_DynamicValue.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const mongoose = require('mongoose'); | ||
const { | ||
Extension | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
const string = require('../FHIRDataTypesSchema/string'); | ||
const { | ||
Expression | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
|
||
const { | ||
ActivityDefinition_DynamicValue | ||
} = require("../FHIRDataTypesSchemaExport/allTypeSchemaTopDef"); | ||
ActivityDefinition_DynamicValue.add({ | ||
extension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
modifierExtension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
path: string, | ||
expression: { | ||
type: Expression, | ||
required: true, | ||
default: void 0 | ||
} | ||
}); | ||
module.exports.ActivityDefinition_DynamicValue = ActivityDefinition_DynamicValue; |
28 changes: 28 additions & 0 deletions
28
models/mongodb/FHIRDataTypesSchema/ActivityDefinition_Participant.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const mongoose = require('mongoose'); | ||
const { | ||
Extension | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
const code = require('../FHIRDataTypesSchema/code'); | ||
const { | ||
CodeableConcept | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
|
||
const { | ||
ActivityDefinition_Participant | ||
} = require("../FHIRDataTypesSchemaExport/allTypeSchemaTopDef"); | ||
ActivityDefinition_Participant.add({ | ||
extension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
modifierExtension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
type: code, | ||
role: { | ||
type: CodeableConcept, | ||
default: void 0 | ||
} | ||
}); | ||
module.exports.ActivityDefinition_Participant = ActivityDefinition_Participant; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
models/mongodb/FHIRDataTypesSchema/AdverseEvent_Causality.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const mongoose = require('mongoose'); | ||
const { | ||
Extension | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
const { | ||
CodeableConcept | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
const string = require('../FHIRDataTypesSchema/string'); | ||
const { | ||
Reference | ||
} = require('../FHIRDataTypesSchemaExport/allTypeSchemaTopDef'); | ||
|
||
const { | ||
AdverseEvent_Causality | ||
} = require("../FHIRDataTypesSchemaExport/allTypeSchemaTopDef"); | ||
AdverseEvent_Causality.add({ | ||
extension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
modifierExtension: { | ||
type: [Extension], | ||
default: void 0 | ||
}, | ||
assessment: { | ||
type: CodeableConcept, | ||
default: void 0 | ||
}, | ||
productRelatedness: string, | ||
author: { | ||
type: Reference, | ||
default: void 0 | ||
}, | ||
method: { | ||
type: CodeableConcept, | ||
default: void 0 | ||
} | ||
}); | ||
module.exports.AdverseEvent_Causality = AdverseEvent_Causality; |
Oops, something went wrong.