Skip to content

regulate-tech/findmyeyetest

Repository files navigation

Navigate to http://localhost:3000/test

-- Calls into rails that is expected to be running on http://localhost:3001/

-- Exact call goes to http://localhost:3001/api/v1/test detailed in config/routes.rb

-- Renders below page :

Screenshot 2024-10-11 at 10 10 41

JSON Schema

Adapted from FHIR: https://www.hl7.org/fhir/visionprescription.html

{
    "resourceType": "VisionPrescription",
    "dateWritten": "<dateTime>", // When prescription was authorized
    "extension": [
        {
            "url": "BVD",
            "valueDecimal": <decimal> // Added inter-ADD power for multifocal levels
        }
    ],
    "lensSpecification": [
        {
            "eye": "<code>", // right | left
            "sphere": <decimal>, // Power of the lens
            "cylinder": <decimal>, // Lens power for astigmatism
            "axis": <integer>, // Lens meridian which contain no power for astigmatism
            "prism": [
                {
                    "amount": <decimal>, // Amount of adjustment
                    "base": "<code>" // up | down | in | out
                }
            ],
            "add": <decimal>, // Added near-ADD power for multifocal levels,
            "extension": [
                {
                    "url": "inter-ADD",
                    "valueDecimal": <decimal> // Added inter-ADD power for multifocal levels
                }
            ]
        }
    ]
}

Before running

Use ruby 2.7.8 Run bundle exec Run npm install

How to Run

In root of directory, open a terminal and execute rails server -p 3001

Then in separate terminal change to the frontend directory cd frontend

then run pnpm dev or npm run

About

An NHSHackDay project to show how we could improve the use of optical prescription records.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6