POST
/api/sentiment/analyze
Analyze sentiment of text using Claude AI with healthcare and relationship context.
Request Body
{
"text": "I'm feeling much better after starting the new treatment",
"includeEmotions": true,
"includeKeyTerms": true,
"healthcareContext": true,
"relationshipContext": true
}
Response
{
"sentiment": {
"score": 0.75,
"category": "positive",
"confidence": 0.89
},
"emotions": {
"primary": "hope",
"secondary": ["relief", "gratitude"],
"emotional_intensity": 0.72
},
"healthcareContext": {
"indicators": [
{
"term": "treatment",
"sentiment_impact": 0.4,
"context": "Medical treatment mentioned positively"
}
],
"health_status_trend": "improving",
"treatment_sentiment": "positive"
},
"crisisAssessment": {
"risk_level": "none",
"indicators": [],
"recommended_action": "none"
},
"insights": {
"overall_assessment": "Positive treatment response with good emotional state",
"recommendations": ["Continue current treatment plan"]
},
"processingTime": 847,
"provider": "claude-ai"
}
POST
/api/data/ingest
Authentication Required: This endpoint requires an enterprise API key.
Ingest data from healthcare applications for sentiment analysis and correlation studies.
Headers
x-api-key: saas_your_enterprise_api_key
Content-Type: application/json
Request Body
{
"appName": "MenoWellness",
"userId": "uuid-of-user",
"textContent": "User journal entry or interaction data",
"contextMetadata": {
"sessionType": "symptom_tracking",
"timestamp": "2024-06-11T10:30:00Z"
},
"anonymize": true
}
Response
{
"success": true,
"dataId": "data-uuid",
"sentimentAnalysis": {
"score": 0.65,
"category": "positive",
"confidence": 0.82
},
"anonymizedData": {
"anonymousId": "anon-12345",
"processed": true
},
"processingTime": 245,
"provider": "claude-ai"
}
POST
/api/clinical/insights/generate
Healthcare Provider Only: Requires clinical authorization and patient access rights.
Generate comprehensive clinical insights for healthcare providers using Claude AI analysis.
Request Body
{
"patientId": "patient-uuid",
"timeframe": "30d",
"includeRiskAssessment": true,
"includeTreatmentRecommendations": true,
"includePredictiveInsights": false
}
Response
{
"success": true,
"insights": {
"patient_id": "patient-uuid",
"comprehensive_insights": {
"executive_summary": "Patient showing positive treatment response...",
"primary_concerns": [
{
"concern": "Mild anxiety related to treatment",
"severity": "low",
"evidence": ["anxiety indicators in recent entries"],
"recommended_action": "monitor and provide reassurance"
}
],
"positive_indicators": [
{
"indicator": "Improved treatment adherence",
"strength": "high",
"clinical_significance": "Strong predictor of positive outcomes"
}
]
},
"risk_assessment": {
"overall_risk_level": "low",
"crisis_risk": {
"suicide_risk": "none",
"self_harm_risk": "none"
}
},
"relationship_health": {
"relationship_health_score": 75,
"support_level": "high"
}
},
"provider": "claude-ai"
}
POST
/api/sentiment/analyze/healthcare
Specialized healthcare sentiment analysis with medical terminology understanding.
POST
/api/enterprise/analytics/correlations
Advanced correlation analysis across multiple healthcare applications.
GET
/api/research/datasets
Browse available anonymized research datasets for pharmaceutical partnerships.