Code Monkey home page Code Monkey logo

hwc-api's Introduction

AMRIT

License: GPL v3

A.M.R.I.T (Accessible Medical Records vis Integrated technology) is a digital health platform initially developed by Piramal Swasthya Management Research Institute (PSMRI). It connects beneficiaries, health facilities & the health workforce in an integrated ecosystem through technology. AMRIT is leveraged by multiple Health and Wellness centres across states in India with services such as 104 helpline, 1097 HIV helpline and telemedicine.

This repository maintains the documentation framework for AMRIT project. Built using MkDocs and the static pages are written as markdown files.

Prerequisite

MkDocs is a fast, simple and downright gorgeous static site generator that's geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file.

This project uses Python. Please ensure that you have Python and pip installed. To install the Python packages listed in a requirements.txt file using pip, you can use the following command in your command prompt or terminal:

pip install -r requirements.txt

Alternatively, MkDocs can be installed with the following command:

pip install mkdocs

Additionally swagger-ui-tag plug-in and material theme can be installed using the following commands:

pip install mkdocs-swagger-ui-tag
pip install mkdocs-material

MkDocs comes with a built-in development server that lets you preview your documentation as you work on it. Make sure you're in the same directory as the mkdocs.yml configuration file, and then start the server by running the mkdocs serve command.

mkdocs serve

Open up http://127.0.0.1:8000/ in your browser, and you'll see the documentation home page being displayed.

Modify the documentation

  • Clone this GitHub repository for which the content needs to be updated.

  • If you wish to update the API spec of a service, run the Spring code locally (mvn spring-boot:run) and load http://localhost:8080/v2/api-docs where 8080 is the default port and v2 is the version of the Swagger specification being used.

  • Copy the page content and save as {module-name}-api-spec.json.

  • Checkout the PSMRI module code from GitHub and save the above json file under docs/api-specs/ folder.

  • Add swagger-ui tag in corresponding markdown file under docs/api-reference folder to include Swagger UI.

  • The markdown file path is mentioned in mkdocs.yml file under API-Reference navigation.

  • Execute mkdocs serve and load http://127.0.0.1:8000/ to view the updated content.

Publish AMRIT website to GitHub pages

  • Raise a merge request from develop branch to main branch.

  • The workflow file publish-site.yml gets triggered once the merge is done.

  • The publishing status can be viewed under Actions tab

hwc-api's People

Contributors

anjana2310 avatar babs93 avatar devikasuresh20 avatar drtechie avatar harimohanr avatar helenkaryamsetty avatar indraniban avatar parvesh755 avatar ravishanigarapu avatar roopesh-beehyv avatar samirparhi-dev avatar shreypatidar-beehyv avatar sunil-beehyv avatar swetatech24 avatar vidyaaa24 avatar

Stargazers

 avatar

hwc-api's Issues

Error Encountered While Restoring Database (Mysql 5.7)

Description
Encountering the following error during database restoration: ERROR 1100 (HY000) at line 2259: Table 'm_ProviderServiceMapping' was not locked with LOCK TABLES

Steps to Reproduce

  1. Create a database named 'db_iemr'.
  2. Provide necessary privileges.
  3. Execute the following commands:
    mysql -h localhost -P 3306 -u root -p db_iemr < db_iemr.sql
    mysql -h localhost -P 3306 -u root -p db_iemr < db_iemr_logins_dummydata.sql

Expected Behavior
Expecting the restoration process to complete successfully without any errors.

Actual Behavior
ERROR 1100 (HY000) at line 2259: Table 'm_ProviderServiceMapping' was not locked with LOCK TABLES

Additional Context

  • MySQL Version: 5.7
  • This error occurs specifically during the restoration process for the 'm_ProviderServiceMapping' table.

Possible Solution
One possible solution is to remove the problematic insert statement for the 'm_ProviderServiceMapping' table. However, this is not a preferred solution as it may lead to data inconsistencies.

Labels

  • bug
  • database
  • restoration

Error Encountered While Restoring Database (Mysql 8.1.0)

Description
Encountering the following error during database restoration: ERROR 1231 (42000) at line 172: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'

Steps to Reproduce

1.0 Create a database named 'db_iemr' ,db_reporting.
2.0 Provide necessary privileges.
3.0 Execute the following commands:
mysql -h localhost -P 3306 -u root -p db_iemr < db_iemr.sql
mysql -h localhost -P 3306 -u root -p db_iemr < db_iemr_logins_dummydata.sql

repeat step no 3 for db_reporting

Expected Behavior
Expecting the restoration process to complete successfully without any errors.

Actual Behavior
ERROR 1231 (42000) at line 172: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'
ERROR 1100 (HY000) at line 2259: Table 'm_ProviderServiceMapping' was not locked with LOCK TABLES

Additional Context

MySQL Version: 8.1.0

Possible solution:
Remove 'NO_AUTO_CREATE_USER' from sql file after removing this and retrying the restoration u will get ERROR 1100 (HY000) at line 2259: Table 'm_ProviderServiceMapping' was not locked with LOCK TABLES error in db_iemr, comment out or remove the insert statement.

Labels

-bug
-database
-restoration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.