🚀 Double Strike: REPL + Web Server in octofhir-fhirpath!
Hello friends! 👋
We’ve got two big updates for everyone working with FHIR medical data.
We’ve got two big updates for everyone working with FHIR medical data.
What’s new?
We’ve added two powerful interactive environments to our CLI octofhir-fhirpath:
🖥️ Interactive REPL Environment
# Start REPL
octofhir-fhirpath repl
# Or start with a resource
octofhir-fhirpath repl --input patient.json
octofhir-fhirpath repl
# Or start with a resource
octofhir-fhirpath repl --input patient.json
REPL features:
- 🎯 Interactive execution of FHIRPath expressions
- 📝 Command history with arrow navigation
- 🎨 Colorized output for better readability
- 📊 Variable management (:set, :unset, :vars)
- 📁 Resource loading (:load file.json)
- 💡 Built-in help (:help)
🌐 Built-in Web Server
# Start the web interface
octofhir-fhirpath server --port 8080
Web server capabilities:
- 🌍 Full-featured web interface for FHIRPath
- 📁 File storage for your JSON resources
- 🔄 HTTP API for system integration
- ⚡ Quick browser access for testing expressions
Example REPL session:
fhirpath> :load examples/patient.json
Loaded Patient resource (id: example-1)
fhirpath> Patient.name.given.first()
"John"
fhirpath> :set myVar "test"
Variable 'myVar' set
fhirpath> :help first
first() - Returns the first item in a collection
Now you’ve got a console environment for quick debugging and a web interface for comfortable browser-based work!
Try out both new features and share your feedback! 💪
fhirpath
octofhir
rust
fhir
healthcare
development
opensource