# Architecture

## Platform Components

The SPICE platform consists of four key components:

* [SPICE Android](https://github.com/Medtronic-LABS/spice-2.0-android): Primary mobile application for end-users
* [SPICE Admin](https://github.com/Medtronic-LABS/spice-2.0-admin-web): Web-based administrative portal
* [SPICE Server](https://github.com/Medtronic-LABS/spice-2.0-server): Service layer & hosting components
* [SPICE HAPI FHIR JPA Server](https://github.com/Medtronic-LABS/hapi-fhir-jpaserver-starter): Open-source FHIR server and save data in the FHIR database

The components are intended to be used together and the platform uses a microservice-based [architecture](/engineering/architecture/fhir-and-standards.md) for separating out the specific business workflows. The mobile application communicates with the service layer through Rest APIs.

For more information on the system context and components, see the [C4 diagrams](/engineering/architecture/c4-diagrams.md) to learn more.

The platform can be deployed in a Cloud or on-premise environment, see the [Deployment Guide](/deploy/deployment-guide.md) for specific instructions on deployment.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://spice.docs.medtroniclabs.org/engineering/architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
