-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement/nodeapis resolvingissues (#68)
* Updates: - dataattributegenerator.controller.js - made the names more understandable - mgmt_automtd_dataattribute_generation.js - resolved a cont variable issue causing runtime issues. - Resolved API endpoint inconsistency and create a random data query API named randomdata.controller.js. - Created an operational random query node code set. This will help for those implementations that are more than API only * added latest random query generated in node script with parameters * added latest random query generated in node script with parameters * Updates: - Enhanced randomdata_queries.js to properly output single transactions * Updates: - Enhanced Existing data API, this involves all the dataexisting.controller.js code to ensure that better json responses were provided, when data is not returned a consistent message is returned with some details for the requestor * Updates: - Created a generatedata_industrystds.js file so data generation can be run from the command line as needed * Updates: - Revised the DataGenerated APIs in datagenerated.controller.js to better formate the api output. * Updates: - Enhancements to Node-APIs README.md. - Enhancements to Usage-Node-Assets.md based on testing and active implementation feedback. - Cleanup of the node code modules generatedata_dataattributes.js and generatedata_datastructures.js * Updates: - Enhancements to datamodel.controller.js, dataplatform.controller.js, implementationdata.controller.js, randomdata.controller.js to enable better Api responses. - Cleaned up implementationdata.controller.js queries to perform better and be more accurate. * Updates: - Enhanced Existing data API, this involves all the referencedata.controller.js code to ensure that better json responses were provided, when data is not returned a consistent message is returned with some details for the requestor - Enhanced Existing data API, this involves all the termsdata.controller.js code to ensure that better json responses were provided, when data is not returned a consistent message is returned with some details for the requestor Co-authored-by: Jonathan Myer <jonathanmyer@Jonathans-MacBook-Pro.local> Co-authored-by: Alan Scott <balanscott@outlook.com>
- Loading branch information
1 parent
7e41407
commit ebba904
Showing
19 changed files
with
943 additions
and
228 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 |
---|---|---|
@@ -1,5 +1,81 @@ | ||
# Node-Assets | ||
Within the Node-API efforts there are a set of node assets that can be run from the command line on any | ||
machine where these are implemented. | ||
|
||
# Pre-Requisites | ||
- Node installed and configured to work from command line or IDE | ||
- Based on your OS the environment variables set. We have multiple ways we have seen these implemented through | ||
implementations. | ||
- The code repo cloned | ||
|
||
# Assets | ||
The following are the command line assets that can run and what they are designed for. These assets will automatically | ||
output to whatever is defined within the environment variable named outputAdapter. | ||
|
||
Values for outputAdapter are: kafka kafka-datapersistence file rdbms nosql. The most commonly used and established | ||
ones are kafka-persistence and file. | ||
|
||
| Node Implementation Type | Description | | ||
|------------------------------------------|---------------------------------------------------------------------| | ||
| generatedata_dataattributes.js | Ability to generate data attriubutes for platform | | ||
| generatedata_datastructures.js | Ability to generate data structures for platform | | ||
| generatedata_industrystds.js | Ability to generate industry standards data from platform | | ||
| mgmt_automtd_dataattribute_generation.js | Ability to leverage an automated data generator for data attributes | | ||
| randomdata_queries.js | Ability to generate data structures for platform | | ||
|
||
## Usage | ||
In this section we will provide some specific examples, these are not exhaustive as there are several | ||
hundred plus ways as these assets are very extensible. | ||
|
||
### Generate Data Attributes | ||
This provides the SAME capabilities as the API for generating data attributes found at: | ||
/api/generatedata/generate/<attributename>?limit=xxx | ||
|
||
There are two arguments, one is specific and required the second one if not included will be defaulted to the runQuantity | ||
environment variable. | ||
|
||
node generatedata_dataattributes.js <attributename> <quantity> | ||
|
||
1. Generate accountnumbers with the included regular expression. This will use the environment variable quantity | ||
defined within the runQuantity. | ||
|
||
node generatedata_dataattributes.js accountnumbers | ||
|
||
2. Generate accountnumbers with the included regular expression. This will generate 525 records. | ||
|
||
node generatedata_dataattributes.js accountnumber 525 | ||
|
||
### Generate Data Structures | ||
This provides the SAME capabilities as the API for generating data attributes found at: | ||
/api/generatedata/generatedatastructures/namedstructure?count=3250&datastructurename=Person Demographics | ||
|
||
There is only argument, the quantity generated will be based on the runQuantity environment variable. | ||
|
||
node generatedata_datastructures.js <datastructure name> | ||
|
||
1. Generate Person Demographics | ||
|
||
node generatedata_datastructures.js "Person Demographics" | ||
|
||
### Generate Industry Standards | ||
This provides the SAME capabilities as the API for generating data attributes found at: | ||
/api/industrystds/generator-hl7?count=100 | ||
|
||
There are two arguments, one is specific and required the second one if not included will be defaulted to the runQuantity | ||
environment variable. | ||
|
||
generatedata_industrystds.js <industrystd> <quantity> | ||
|
||
1. Generate 500 HL7 Messages | ||
|
||
generatedata_industrystds.js hl7 500 | ||
|
||
### Automated Data Attribute Generation | ||
There is NO API that provides this capability overall, the functionality is available per data attribute within the developed | ||
APIs; however, this is intended to be run and as long as it is running creating data attirbutes as defined within the | ||
management subsystems. The definition also has the quantity, so it is intended to be an all encompassing record. | ||
|
||
FYI: as of this content creation this was in place but not fully developed!! | ||
|
||
node mgmt_automtd_dataattribute_generation.js | ||
|
||
# Implementation/Usage |
Empty file.
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
Oops, something went wrong.