This is a GraphQL API built with .NET 7.0. that allows for querying data relating patients to patient imaging studies.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- .NET 7.0
- Docker (optional)
- Clone the repository
- Navigate to the project directory
- Run
dotnet restore
- Run
dotnet run
to start the application - Navigate to
http://localhost:5109/graphiql
to access the GraphiQL interface
- Build the Docker image:
docker build -t graphqlproject .
- Run the Docker container:
docker run -p 80:80 graphqlproject
- Create a .env file in the root directory with an environment variable called CONNECTION_STRING set with the database connection info.
- Build the docker image and run:
docker-compose up --build
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details
query PatientsQuery {
patientQuery {
patients {
patientId,
firstName
lastName
studies {
studyId
}
}
}
}
query PatientQuery {
patientQuery {
patient(patientId: "4f0481f2-5d8e-4ecf-9953-6d56442bc4d6") {
firstName,
lastName,
studies {
studyId,
modality,
patientId
}
}
}
}
query StudiesQuery {
studyQuery {
studies {
studyId,
modality,
patientId,
}
}
}