Skip to content

A Web-based Electronic Medical Record systems that complies with Indonesia's FHIR Implementation (SATUSEHAT).

License

Notifications You must be signed in to change notification settings

itsLeonB/rekam-medis-elektronik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electronic Medical Record System

code style: prettier License: CC BY-NC 4.0

This is a web-based Electronic Medical Record systems application which complies with Indonesia's FHIR Implementation (SATUSEHAT).

API Documentation can be accessed through Postman

Available Features

  • User Registration
  • Practitioner Onboarding
  • Patient Onboarding
  • Rawat Jalan Jilid 1
  • Rawat Inap Jilid 1
  • IGD Jilid 1

Prerequisites

This project is built using:

  • PHP 8.2
  • Laravel 10
  • MySQL
  • Vue.js 3 with Inertia.js
  • Tailwind CSS 3

Installation

  1. Clone the project

  2. Run these commands:

    # install Laravel dependencies
    composer install
    
    # install Vue dependencies
    npm install
    
    # Create env file from example
    cp .env.example .env
  3. Change these values in .env:

    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=rme
    DB_USERNAME=root
    DB_PASSWORD=
    
    MAIL_MAILER=smtp
    MAIL_HOST=mailpit
    MAIL_PORT=1025
    MAIL_USERNAME=null
    MAIL_PASSWORD=null
    MAIL_ENCRYPTION=null
    MAIL_FROM_ADDRESS="hello@example.com"
    MAIL_FROM_NAME="${APP_NAME}"
    MAIL_ADMIN=hello@example.com
    
  4. Use SATUSEHAT Postman to create Organization and Location resource. Paste the resource data in storage/onboarding-resource.

  5. Change these values in .env, get the latest values through SATUSEHAT Developer Portal

    auth_url=https://api-satusehat-dev.dto.kemkes.go.id/oauth2/v1
    base_url=https://api-satusehat-dev.dto.kemkes.go.id/fhir-r4/v1
    consent_url=https://api-satusehat-dev.dto.kemkes.go.id/consent/v1
    kfa_v1_url=https://api-satusehat-dev.dto.kemkes.go.id/kfa
    kfa_v2_url=https://api-satusehat-dev.dto.kemkes.go.id/kfa-v2
    client_id=your_client_id
    client_secret=your_client_secret
    organization_id=your_organization_id
    location_id=your_location_id
    
  6. Run these commands:

    # Generate app key
    php artisan key:generate
    
    # Migrate and seed database
    php artisan migrate --seed
    
    # (Optional) seed database with dummies if needed
    php artisan db:seed DummyDataSeeder
    
    # (Optional) seed database with example data if needed
    php artisan db:seed IdFhirResourceSeeder
    
    # Build the front-end
    npm run build
  7. Serve the app using web servers or local server with php artisan serve

  8. Run Task Scheduler. Please refer to Laravel's documentation

Contributors

License

Rekam Medis Elektronik LMA © 2024 by Ellion Blessan, Hanif Mitsal Mahatta, and Muhammad Armando Nur Rizqy Ansar is licensed under CC BY-NC 4.0.

You are free to:

  • Share: Copy and redistribute the material in any medium or format.
  • Adapt: Remix, transform, and build upon the material.

Under the following terms:

  • Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made.
  • NonCommercial: You may not use the material for commercial purposes.

See the full license text in the LICENSE file.

About

A Web-based Electronic Medical Record systems that complies with Indonesia's FHIR Implementation (SATUSEHAT).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •