use axum::{http::StatusCode, response::IntoResponse, Json};
use serde_json::json;
fn not_implemented(reason: &str) -> impl IntoResponse {
(
StatusCode::NOT_IMPLEMENTED,
Json(json!({
"resourceType": "OperationOutcome",
"issue": [{
"severity": "error",
"code": "not-supported",
"diagnostics": reason,
}],
})),
)
}
pub async fn get_event() -> impl IntoResponse {
not_implemented("FHIR Event GET not implemented yet — see src/api/fhir/mod.rs")
}
pub async fn create_event() -> impl IntoResponse {
not_implemented("FHIR Event POST not implemented yet — see src/api/fhir/mod.rs")
}
pub async fn update_event() -> impl IntoResponse {
not_implemented("FHIR Event PUT not implemented yet — see src/api/fhir/mod.rs")
}
pub async fn delete_event() -> impl IntoResponse {
not_implemented("FHIR Event DELETE not implemented yet — see src/api/fhir/mod.rs")
}
pub async fn search_events() -> impl IntoResponse {
not_implemented("FHIR Event search not implemented yet — see src/api/fhir/mod.rs")
}