Skip to content

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

Notifications You must be signed in to change notification settings

itsLeonB/rekam-medis-elektronik

Repository files navigation

Electronic Medical Record System

code style: prettier

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="[email protected]"
    MAIL_FROM_NAME="${APP_NAME}"
    [email protected]
    
  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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published