https://github.com/jtravan3/redox-java-data-model
This project contains Java POJOs representing the Redox API data model.
https://github.com/jtravan3/redox-java-data-model
data-model java java-pojos pojo redox spring spring-boot
Last synced: 28 days ago
JSON representation
This project contains Java POJOs representing the Redox API data model.
- Host: GitHub
- URL: https://github.com/jtravan3/redox-java-data-model
- Owner: jtravan3
- License: mit
- Created: 2020-08-28T02:36:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-06T14:59:17.000Z (over 4 years ago)
- Last Synced: 2025-07-13T20:23:29.551Z (7 months ago)
- Topics: data-model, java, java-pojos, pojo, redox, spring, spring-boot
- Language: Java
- Homepage: https://jtravan3.com
- Size: 823 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/funding.yml
- License: LICENSE.md
Awesome Lists containing this project
README

# Redox Java Data Model


[](https://opensource.org/licenses/MIT)
[](http://makeapullrequest.com)
[](https://gitter.im/jtravan3/redox-java-data-model?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[](https://codecov.io/gh/jtravan3/redox-java-data-model)
This project serves as a repository for Java POJOs that represent the Redox API Data Model.
> DISCLAIMER: This is an open source project providing additional development capabilities on the existing [Redox](https://www.redoxengine.com/)
> API. It is not an affiliate of [Redox](https://www.redoxengine.com/) and does not represent the company in any way.
## Usage
Install the dependency using [Maven](https://maven.apache.org/guides/getting-started/)
```xml
com.jtravan3
redox-java-data-model
1.0.5
```
Using [Jackson](https://github.com/FasterXML/jackson) or other JSON parsing libraries you can map your raw JSON payload
received by [Redox](https://www.redoxengine.com/) to a strongly typed Java POJO.
```java
ObjectMapper mapper = new ObjectMapper();
PatientPush patientPush = mapper.readValue(stringJsonContent, PatientPush.class);
patientPush.getAllergies().stream().forEach(allergy -> {
Criticality criticality = allergy.getCriticality();
System.out.println(criticality.getName());
});
```
or use the provided `RedoxDataModelFactory` to create the data models for you by providing the class types
```java
import redox.services.RedoxDataModelFactory;
@Component
public class RedoxDataParser {
public PatientPush getPatientPush() throws IOException {
Path filePath = Path.of("clinicalsummary-patientpush.json");
PatientPush patientPush = RedoxDataModelFactory.parseRedoxJson(filePath, PatientPush.class);
patientPush.getFamilyHistory().forEach(familyHistory -> {
familyHistory.getProblems().forEach(problem -> {
System.out.println(problem);
});
});
return patientPush;
}
}
```
## Philosophy
Our project vision is to make available a Java data model representing the [Redox](https://www.redoxengine.com/) API
data model. This data model can be used by those desiring to integrate into EHR's via Redox and Java-based applications.
## Contributing
Please see [CONTRIBUTING.md](https://github.com/jtravan3/redox-java-data-model/blob/develop/CONTRIBUTING.md) for more details regarding contributing issues or code.
## Questions
If you are experiencing a bug, please feel free to file an issue. For general questions, please post them to [StackOverflow](https://stackoverflow.com/search?q=redox-java-data-model) with the tag `redox-java-data-model`.
## License
The content of this project itself is licensed under the [Creative Commons Attribution 3.0 Unported](https://creativecommons.org/licenses/by/3.0/) license, and the underlying source code used to format and display that content is licensed under the [MIT license](https://github.com/jtravan3/redox-java-data-model/blob/develop/LICENSE.md).
## Resources
### Redox
For further references regarding Redox:
- [Redox Engine](https://www.redoxengine.com/)
- [Redox Developer Docs](https://developer.redoxengine.com/)
### Spring Boot
For further references with Spring Boot:
- [Spring Initializr](https://start.spring.io/)
- [Getting Started](https://spring.io/guides/gs/spring-boot/)
### Maven
For further references with Maven's dependency management framework:
- [Spring and Maven](https://spring.io/guides/gs/spring-boot/)
- [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
- [Apache Maven Getting Started](https://maven.apache.org/guides/getting-started/)