Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "name": "AnimalJournalEntry",
- "type": "object",
- "properties": {
- "animal_name": {
- "type": "string",
- "description": "Name of the animal"
- },
- "animal_type": {
- "type": "string",
- "enum": [
- "dog",
- "cat",
- "bird",
- "rabbit",
- "reptile",
- "exotic",
- "horse",
- "other"
- ]
- },
- "entry_date": {
- "type": "string",
- "format": "date",
- "description": "Date of journal entry"
- },
- "overall_health": {
- "type": "string",
- "enum": [
- "excellent",
- "good",
- "fair",
- "poor",
- "critical"
- ],
- "description": "Overall health assessment"
- },
- "weight_kg": {
- "type": "number",
- "description": "Weight in kg"
- },
- "symptoms": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Symptoms observed"
- },
- "behavior_notes": {
- "type": "string",
- "description": "Behavior observations"
- },
- "diet_notes": {
- "type": "string",
- "description": "What was eaten today"
- },
- "activity_notes": {
- "type": "string",
- "description": "Activity and exercise"
- },
- "medications_given": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Medications administered today"
- },
- "vet_visit": {
- "type": "boolean",
- "default": false,
- "description": "Vet visit today"
- },
- "notes": {
- "type": "string",
- "description": "Additional notes"
- },
- "photos": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Photo URLs"
- }
- },
- "required": [
- "animal_name",
- "entry_date"
- ]
- }{
- "name": "AnimalPatientFile",
- "type": "object",
- "properties": {
- "animal_name": {
- "type": "string",
- "description": "Animal's name"
- },
- "animal_type": {
- "type": "string",
- "enum": [
- "dog",
- "cat",
- "bird",
- "rabbit",
- "reptile",
- "exotic",
- "horse",
- "other"
- ],
- "description": "Type of animal"
- },
- "animal_type_other": {
- "type": "string",
- "description": "Custom animal type if 'other'"
- },
- "breed": {
- "type": "string",
- "description": "Animal breed"
- },
- "sex": {
- "type": "string",
- "enum": [
- "male",
- "female",
- "male_neutered",
- "female_spayed"
- ],
- "description": "Sex and sterilization status"
- },
- "date_of_birth": {
- "type": "string",
- "format": "date",
- "description": "Date of birth"
- },
- "age_years": {
- "type": "number",
- "description": "Age in years (if DOB unknown)"
- },
- "current_weight_kg": {
- "type": "number",
- "description": "Current weight in kg"
- },
- "owner_name": {
- "type": "string",
- "description": "Owner's full name"
- },
- "owner_email": {
- "type": "string",
- "description": "Owner's email"
- },
- "owner_phone": {
- "type": "string",
- "description": "Owner's phone number"
- },
- "vaccinations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "booster_due": {
- "type": "string"
- },
- "notes": {
- "type": "string"
- }
- }
- },
- "description": "Vaccination records"
- },
- "known_allergies": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Known allergies"
- },
- "medical_history": {
- "type": "string",
- "description": "Past illnesses, surgeries, treatments"
- },
- "diet_type": {
- "type": "string",
- "description": "Type of food (kibble, raw, mixed, etc.)"
- },
- "diet_quantity": {
- "type": "string",
- "description": "Quantity and feeding frequency"
- },
- "diet_habits": {
- "type": "string",
- "description": "Special dietary habits or notes"
- },
- "behavior_stress": {
- "type": "string",
- "description": "Stress indicators or triggers"
- },
- "behavior_sleep": {
- "type": "string",
- "description": "Sleep patterns"
- },
- "behavior_activity": {
- "type": "string",
- "description": "Activity level and exercise"
- },
- "behavior_habits": {
- "type": "string",
- "description": "Specific habits or behavioral notes"
- },
- "doctor_notes": {
- "type": "string",
- "description": "General veterinarian notes"
- }
- },
- "required": [
- "animal_name",
- "animal_type",
- "owner_name"
- ]
- }{
- "name": "Assessment",
- "type": "object",
- "properties": {
- "symptoms": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of reported symptoms"
- },
- "duration": {
- "type": "string",
- "description": "How long symptoms have been present"
- },
- "severity_level": {
- "type": "string",
- "enum": [
- "mild",
- "moderate",
- "severe",
- "emergency"
- ],
- "description": "Assessed severity level"
- },
- "possible_conditions": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "probability": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "description": "AI-suggested possible conditions"
- },
- "questions_answered": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "question": {
- "type": "string"
- },
- "answer": {
- "type": "string"
- }
- }
- },
- "description": "Interactive assessment Q&A"
- },
- "recommendations": {
- "type": "object",
- "properties": {
- "action": {
- "type": "string"
- },
- "advice": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "when_to_seek_help": {
- "type": "string"
- }
- },
- "description": "Personalized recommendations"
- },
- "is_emergency": {
- "type": "boolean",
- "description": "Whether this is flagged as emergency"
- },
- "country": {
- "type": "string",
- "description": "Country detected from user geolocation at time of assessment"
- }
- },
- "required": [],
- "rls": {}
- }{
- "name": "ChildProfile",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "Child's full name"
- },
- "date_of_birth": {
- "type": "string",
- "format": "date"
- },
- "gender": {
- "type": "string",
- "enum": [
- "male",
- "female",
- "other"
- ]
- },
- "blood_type": {
- "type": "string",
- "enum": [
- "A+",
- "A-",
- "B+",
- "B-",
- "AB+",
- "AB-",
- "O+",
- "O-",
- "unknown"
- ]
- },
- "birth_weight_kg": {
- "type": "number"
- },
- "birth_height_cm": {
- "type": "number"
- },
- "allergies": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "chronic_conditions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "current_medications": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "dosage": {
- "type": "string"
- },
- "frequency": {
- "type": "string"
- }
- }
- }
- },
- "vaccinations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "next_dose": {
- "type": "string"
- },
- "notes": {
- "type": "string"
- }
- }
- }
- },
- "growth_records": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "weight_kg": {
- "type": "number"
- },
- "height_cm": {
- "type": "number"
- },
- "head_circumference_cm": {
- "type": "number"
- }
- }
- }
- },
- "illnesses": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "treatment": {
- "type": "string"
- },
- "resolved": {
- "type": "boolean"
- }
- }
- }
- },
- "doctor_notes": {
- "type": "string"
- },
- "emergency_contact_name": {
- "type": "string"
- },
- "emergency_contact_phone": {
- "type": "string"
- },
- "teen_mode": {
- "type": "boolean",
- "default": false,
- "description": "If true, child has taken control of their own record"
- },
- "teen_email": {
- "type": "string",
- "description": "Email linked to teen's own account"
- }
- },
- "required": [
- "name",
- "date_of_birth"
- ]
- }{
- "name": "Consultation",
- "type": "object",
- "properties": {
- "patient_file_id": {
- "type": "string",
- "description": "Reference to patient file"
- },
- "consultation_date": {
- "type": "string",
- "format": "date",
- "description": "Date of consultation"
- },
- "chief_complaint": {
- "type": "string",
- "description": "Main reason for visit"
- },
- "heart_rate": {
- "type": "number",
- "description": "Heart rate (bpm)"
- },
- "blood_pressure_systolic": {
- "type": "number",
- "description": "Systolic blood pressure"
- },
- "blood_pressure_diastolic": {
- "type": "number",
- "description": "Diastolic blood pressure"
- },
- "temperature": {
- "type": "number",
- "description": "Body temperature (\u00b0C)"
- },
- "weight": {
- "type": "number",
- "description": "Weight (kg)"
- },
- "blood_sugar": {
- "type": "number",
- "description": "Blood sugar level (mg/dL)"
- },
- "reflexes": {
- "type": "string",
- "description": "Reflex observations"
- },
- "physical_examination": {
- "type": "string",
- "description": "Physical exam notes"
- },
- "diagnosis": {
- "type": "string",
- "description": "Doctor's diagnosis"
- },
- "prescribed_medications": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "medication": {
- "type": "string"
- },
- "dosage": {
- "type": "string"
- },
- "frequency": {
- "type": "string"
- },
- "duration": {
- "type": "string"
- }
- }
- }
- },
- "radiology_images": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "URLs of radiology images"
- },
- "radiology_analysis": {
- "type": "string",
- "description": "AI analysis of radiology images"
- },
- "follow_up_notes": {
- "type": "string",
- "description": "Follow-up instructions"
- },
- "is_surgery": {
- "type": "boolean",
- "default": false,
- "description": "Whether this is a surgical consultation"
- },
- "surgery_name": {
- "type": "string",
- "description": "Name of the surgery"
- },
- "surgery_date": {
- "type": "string",
- "format": "date",
- "description": "Date of surgery"
- },
- "pre_op_checklist": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Pre-operative checklist items"
- },
- "post_op_notes": {
- "type": "string",
- "description": "Post-operative follow-up notes"
- },
- "healing_photos": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "URLs of healing progress photos"
- },
- "healing_ai_analysis": {
- "type": "string",
- "description": "AI analysis of healing photos"
- },
- "or_schedule": {
- "type": "string",
- "description": "Operating room schedule details"
- },
- "progress_photos": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "General progress photos for tracking"
- },
- "progress_ai_analysis": {
- "type": "string",
- "description": "AI analysis of progress photos"
- }
- },
- "required": [
- "patient_file_id",
- "consultation_date"
- ]
- }{
- "name": "DirectMessage",
- "type": "object",
- "properties": {
- "doctor_id": {
- "type": "string",
- "description": "ID of the DoctorProfile"
- },
- "doctor_name": {
- "type": "string",
- "description": "Doctor's full name"
- },
- "doctor_email": {
- "type": "string",
- "description": "Doctor's email"
- },
- "patient_email": {
- "type": "string",
- "description": "Patient's email"
- },
- "patient_name": {
- "type": "string",
- "description": "Patient's display name"
- },
- "content": {
- "type": "string",
- "description": "Text content of the message"
- },
- "sender_role": {
- "type": "string",
- "enum": [
- "patient",
- "doctor"
- ],
- "description": "Who sent this message"
- }
- },
- "required": [
- "doctor_id",
- "content",
- "sender_role"
- ]
- }
- "name": "DiseaseEntry",
- "type": "object",
- "properties": {
- "disease_name": {
- "type": "string",
- "description": "Name of the disease"
- },
- "category": {
- "type": "string",
- "description": "Disease category (e.g. Infectious, Chronic, etc.)"
- },
- "description": {
- "type": "string",
- "description": "Overview of the disease"
- },
- "body_effects": {
- "type": "string",
- "description": "What it does to the body"
- },
- "symptoms": {
- "type": "string",
- "description": "Main symptoms and effects"
- },
- "transmission": {
- "type": "string",
- "description": "How it spreads / how you can catch it"
- },
- "treatments": {
- "type": "string",
- "description": "Remedies, treatments and cures"
- },
- "source_url": {
- "type": "string",
- "description": "URL of the source where information was extracted"
- },
- "source_verified": {
- "type": "boolean",
- "default": false,
- "description": "Whether AI verified the source URL"
- },
- "verification_note": {
- "type": "string",
- "description": "AI verification notes about the source"
- },
- "status": {
- "type": "string",
- "enum": [
- "pending",
- "approved",
- "rejected"
- ],
- "default": "pending",
- "description": "Moderation status"
- },
- "submitted_by": {
- "type": "string",
- "description": "Submitter display name"
- },
- "submitted_by_email": {
- "type": "string",
- "description": "Submitter email \u2014 used to link to doctor profile"
- },
- "is_builtin": {
- "type": "boolean",
- "default": false,
- "description": "Whether this is a built-in entry (not user submitted)"
- }
- },
- "required": [
- "disease_name",
- "source_url"
- ]
- }{
- "name": "DoctorProfile",
- "type": "object",
- "properties": {
- "full_name": {
- "type": "string",
- "description": "Doctor's full name"
- },
- "specialization": {
- "type": "string",
- "description": "Medical specialization"
- },
- "phone_number": {
- "type": "string",
- "description": "Contact phone number"
- },
- "email": {
- "type": "string",
- "format": "email",
- "description": "Contact email"
- },
- "address": {
- "type": "string",
- "description": "Clinic/office address"
- },
- "city": {
- "type": "string",
- "description": "City location"
- },
- "latitude": {
- "type": "number",
- "description": "Latitude coordinate"
- },
- "longitude": {
- "type": "number",
- "description": "Longitude coordinate"
- },
- "profile_picture": {
- "type": "string",
- "description": "URL to profile picture"
- },
- "diploma_photo": {
- "type": "string",
- "description": "URL to diploma/certification photo"
- },
- "practice_photos": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Photos of practice/clinic"
- },
- "bio": {
- "type": "string",
- "description": "Professional biography"
- },
- "years_of_experience": {
- "type": "number",
- "description": "Years of medical practice"
- },
- "languages": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Languages spoken"
- },
- "availability": {
- "type": "string",
- "description": "Available hours/days"
- },
- "consultation_fee": {
- "type": "string",
- "description": "Consultation fee information"
- },
- "verified": {
- "type": "boolean",
- "default": false,
- "description": "Verified doctor status"
- }
- },
- "required": [
- "full_name",
- "specialization",
- "phone_number",
- "diploma_photo"
- ]
- }{
- "name": "DoctorReview",
- "type": "object",
- "properties": {
- "doctor_id": {
- "type": "string",
- "description": "ID of the DoctorProfile being reviewed"
- },
- "reviewer_name": {
- "type": "string",
- "description": "Display name of the reviewer"
- },
- "vote": {
- "type": "string",
- "enum": [
- "like",
- "dislike"
- ],
- "description": "Like or dislike vote"
- },
- "note": {
- "type": "string",
- "description": "Optional private note (only visible to reviewer)"
- },
- "comment": {
- "type": "string",
- "description": "Public comment on the doctor"
- }
- },
- "required": [
- "doctor_id"
- ]
- }{
- "name": "GroupMessage",
- "type": "object",
- "properties": {
- "group_id": {
- "type": "string",
- "description": "ID of the support group"
- },
- "sender_name": {
- "type": "string",
- "description": "Display name of the sender"
- },
- "sender_email": {
- "type": "string",
- "description": "Email of the sender"
- },
- "content": {
- "type": "string",
- "description": "Text content of the message"
- },
- "is_doctor": {
- "type": "boolean",
- "default": false,
- "description": "Whether the sender is a doctor"
- },
- "language": {
- "type": "string",
- "default": "en",
- "description": "Language code of the message (en, fr, ar, es, de, etc.)"
- }
- },
- "required": [
- "group_id",
- "content"
- ]
- }{
- "name": "HealthProfile",
- "type": "object",
- "properties": {
- "date_of_birth": {
- "type": "string",
- "format": "date"
- },
- "gender": {
- "type": "string",
- "enum": [
- "male",
- "female",
- "other",
- "prefer_not_to_say"
- ]
- },
- "blood_type": {
- "type": "string",
- "enum": [
- "A+",
- "A-",
- "B+",
- "B-",
- "AB+",
- "AB-",
- "O+",
- "O-",
- "unknown"
- ]
- },
- "height_cm": {
- "type": "number"
- },
- "weight_kg": {
- "type": "number"
- },
- "allergies": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "chronic_conditions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "current_medications": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "dosage": {
- "type": "string"
- },
- "frequency": {
- "type": "string"
- }
- }
- }
- },
- "vaccinations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "next_dose": {
- "type": "string"
- },
- "notes": {
- "type": "string"
- }
- }
- }
- },
- "surgeries": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "notes": {
- "type": "string"
- }
- }
- }
- },
- "family_history": {
- "type": "string",
- "description": "Notable family medical history"
- },
- "smoking_status": {
- "type": "string",
- "enum": [
- "never",
- "former",
- "current"
- ]
- },
- "alcohol_use": {
- "type": "string",
- "enum": [
- "none",
- "occasional",
- "moderate",
- "heavy"
- ]
- },
- "occupation": {
- "type": "string"
- },
- "insurance_info": {
- "type": "string"
- },
- "emergency_contact_name": {
- "type": "string"
- },
- "emergency_contact_phone": {
- "type": "string"
- },
- "simplified_mode": {
- "type": "boolean",
- "default": false
- }
- },
- "required": [],
- "rls": {}
- }{
- "name": "JournalEntry",
- "type": "object",
- "properties": {
- "entry_date": {
- "type": "string",
- "format": "date",
- "description": "Date of journal entry"
- },
- "overall_feeling": {
- "type": "string",
- "enum": [
- "excellent",
- "good",
- "fair",
- "poor",
- "very_poor"
- ],
- "description": "Overall health feeling"
- },
- "symptoms": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Symptoms experienced today"
- },
- "symptom_severity": {
- "type": "number",
- "minimum": 1,
- "maximum": 10,
- "description": "Severity rating 1-10"
- },
- "activities": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Activities performed"
- },
- "medications_taken": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Medications taken today"
- },
- "notes": {
- "type": "string",
- "description": "Additional notes"
- },
- "mood": {
- "type": "string",
- "enum": [
- "happy",
- "neutral",
- "sad",
- "anxious",
- "stressed"
- ],
- "description": "Mood today"
- },
- "sleep_hours": {
- "type": "number",
- "description": "Hours of sleep"
- },
- "water_intake": {
- "type": "number",
- "description": "Glasses of water"
- }
- },
- "required": [],
- "rls": {}
- }{
- "name": "NewsPost",
- "type": "object",
- "properties": {
- "title": {
- "type": "string",
- "description": "Post title"
- },
- "content": {
- "type": "string",
- "description": "Full post content"
- },
- "source_url": {
- "type": "string",
- "description": "Required source URL for the information"
- },
- "image_url": {
- "type": "string",
- "description": "Optional image URL attached to the post"
- },
- "author_name": {
- "type": "string",
- "description": "Display name of the author"
- },
- "author_email": {
- "type": "string",
- "description": "Email of the author"
- },
- "source_verified": {
- "type": "boolean",
- "default": false,
- "description": "Whether AI verified the source URL"
- },
- "verification_note": {
- "type": "string",
- "description": "AI verification notes about the source"
- },
- "is_builtin": {
- "type": "boolean",
- "default": false,
- "description": "Whether this is a built-in seed post"
- },
- "category": {
- "type": "string",
- "enum": [
- "health_warning",
- "research",
- "trend_alert",
- "general"
- ],
- "default": "general",
- "description": "Category of the news post"
- }
- },
- "required": [
- "title",
- "content",
- "source_url"
- ]
- }
- "name": "PatientFile",
- "type": "object",
- "properties": {
- "patient_name": {
- "type": "string",
- "description": "Patient's full name"
- },
- "patient_email": {
- "type": "string",
- "format": "email",
- "description": "Patient contact email"
- },
- "patient_phone": {
- "type": "string",
- "description": "Patient phone number"
- },
- "date_of_birth": {
- "type": "string",
- "format": "date",
- "description": "Patient date of birth"
- },
- "allergies": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Patient allergies"
- },
- "current_treatments": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Ongoing treatments"
- },
- "medical_history": {
- "type": "string",
- "description": "Patient medical history notes"
- },
- "blood_type": {
- "type": "string",
- "enum": [
- "A+",
- "A-",
- "B+",
- "B-",
- "AB+",
- "AB-",
- "O+",
- "O-",
- "unknown"
- ]
- },
- "doctor_notes": {
- "type": "string",
- "description": "General doctor notes"
- },
- "specialty": {
- "type": "string",
- "description": "Medical specialty (general practitioner, dentist, cardiology, orthopedics, dermatology, etc.)"
- },
- "specialty_area": {
- "type": "string",
- "description": "Specific area or sub-specialty"
- }
- },
- "required": [
- "patient_name"
- ]
- }
- "name": "Reminder",
- "type": "object",
- "properties": {
- "title": {
- "type": "string",
- "description": "Reminder title"
- },
- "description": {
- "type": "string",
- "description": "Reminder details"
- },
- "reminder_time": {
- "type": "string",
- "description": "Time of day (HH:MM format)"
- },
- "repeat_type": {
- "type": "string",
- "enum": [
- "daily",
- "specific_date"
- ],
- "description": "How the reminder repeats"
- },
- "specific_date": {
- "type": "string",
- "format": "date",
- "description": "Specific date for one-time reminder"
- },
- "is_active": {
- "type": "boolean",
- "default": true,
- "description": "Whether reminder is active"
- },
- "reminder_type": {
- "type": "string",
- "enum": [
- "medication",
- "appointment",
- "other"
- ],
- "default": "other",
- "description": "Type of reminder"
- }
- },
- "required": [
- "title",
- "reminder_time",
- "repeat_type"
- ]
- }{
- "name": "VetConsultation",
- "type": "object",
- "properties": {
- "animal_file_id": {
- "type": "string",
- "description": "Reference to AnimalPatientFile"
- },
- "consultation_date": {
- "type": "string",
- "format": "date",
- "description": "Date of consultation"
- },
- "chief_complaint": {
- "type": "string",
- "description": "Main reason for visit (loss of appetite, injury, vaccination follow-up, etc.)"
- },
- "temperature": {
- "type": "number",
- "description": "Body temperature (\u00b0C)"
- },
- "heart_rate": {
- "type": "number",
- "description": "Cardiac frequency (bpm)"
- },
- "respiratory_rate": {
- "type": "number",
- "description": "Respiratory rate (breaths/min)"
- },
- "weight": {
- "type": "number",
- "description": "Weight at consultation (kg)"
- },
- "coat_skin_condition": {
- "type": "string",
- "description": "Coat and skin condition"
- },
- "eye_ear_dental": {
- "type": "string",
- "description": "Eye, ear, and dental condition"
- },
- "reflexes_mobility": {
- "type": "string",
- "description": "Reflexes and mobility observations"
- },
- "physical_examination": {
- "type": "string",
- "description": "Full clinical examination notes"
- },
- "radiology_images": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "URLs of X-ray, ultrasound, MRI images"
- },
- "radiology_analysis": {
- "type": "string",
- "description": "AI analysis of imaging"
- },
- "diagnosis": {
- "type": "string",
- "description": "Suspected or confirmed disease/diagnosis"
- },
- "prescribed_medications": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "medication": {
- "type": "string"
- },
- "dosage": {
- "type": "string"
- },
- "frequency": {
- "type": "string"
- },
- "duration": {
- "type": "string"
- }
- }
- }
- },
- "nutritional_advice": {
- "type": "string",
- "description": "Nutritional or dietary recommendations"
- },
- "behavioral_advice": {
- "type": "string",
- "description": "Behavioral recommendations"
- },
- "follow_up_notes": {
- "type": "string",
- "description": "Follow-up instructions (vaccinations, check-up, diet)"
- }
- },
- "required": [
- "animal_file_id",
- "consultation_date"
- ]
- }
- entities/Reminder.json
- json
- {
- "name": "Reminder",
- "type": "object",
- "properties": {
- "title": { "type": "string", "description": "Reminder title" },
- "description": { "type": "string", "description": "Reminder details" },
- "due_date": { "type": "string", "format": "date-time", "description": "When the reminder is due" },
- "priority": { "type": "string", "enum": ["low","medium","high"], "description": "Reminder priority level" },
- "completed": { "type": "boolean", "description": "Whether the reminder is completed" }
- }
- } entities/VetConsultation.json
- json
- {
- "name": "VetConsultation",
- "type": "object",
- "properties": {
- "animal_id": { "type": "string", "description": "Reference to animal patient file" },
- "consultation_date": { "type": "string", "format": "date-time", "description": "Date of consultation" },
- "reason": { "type": "string", "description": "Reason for consultation" },
- "vital_signs": { "type": "object", "properties": {
- "temperature": { "type": "number" },
- "heart_rate": { "type": "number" },
- "respiratory_rate": { "type": "number" },
- "weight": { "type": "number" }
- }},
- "diagnosis": { "type": "string", "description": "Diagnosis details" },
- "treatment": { "type": "string", "description": "Prescribed treatment" },
- "follow_up": { "type": "string", "description": "Follow-up instructions" }
- }
- }
- now the src
- api/base44Client.js
- js
- import { createClient } from '@base44/sdk';
- import { appParams } from '@/lib/app-params';
- const { appId, serverUrl, token, functionsVersion } = appParams;
- export const base44 = createClient({
- appId,
- serverUrl,
- token,
- functionsVersion,
- requiresAuth: false
- });
- api/entities.js
- js
- // Central registry of entities
- import AnimalPatientFile from '@/entities/AnimalPatientFile.json';
- import Assessment from '@/entities/Assessment.json';
- import Reminder from '@/entities/Reminder.json';
- import VetConsultation from '@/entities/VetConsultation.json';
- // ... autres entités
- export const entities = {
- AnimalPatientFile,
- Assessment,
- Reminder,
- VetConsultation,
- // ...
- };
- api/integrations.js
- js
- // Example integration setup
- import { base44 } from './base44Client';
- export const integrations = {
- fetchData: async (entity) => {
- return await base44.get(entity);
- },
- saveData: async (entity, data) => {
- return await base44.post(entity, data);
- }
- };
- lib/app-params.js
- js
- export const appParams = {
- appId: "your-app-id",
- serverUrl: "https://api.base44.com",
- token: "your-token",
- functionsVersion: "v1"
- };
- lib/AuthContext.jsx
- jsx
- import { createContext, useContext, useState } from 'react';
- const AuthContext = createContext(null);
- export const AuthProvider = ({ children }) => {
- const [user, setUser] = useState(null);
- return (
- <AuthContext.Provider value={{ user, setUser }}>
- {children}
- </AuthContext.Provider>
- );
- };
- export const useAuth = () => useContext(AuthContext);
- lib/LanguageContext.jsx
- jsx
- import { createContext, useContext, useState } from 'react';
- const LanguageContext = createContext();
- export const LanguageProvider = ({ children }) => {
- const [language, setLanguage] = useState('en');
- return (
- <LanguageContext.Provider value={{ language, setLanguage }}>
- {children}
- </LanguageContext.Provider>
- );
- };
- export const useLanguage = () => useContext(LanguageContext);
- lib/translations.js
- js
- export const translations = {
- en: {
- welcomeBack: "Welcome back",
- healthRecord: "Health Record",
- healthJournal: "Health Journal",
- diseaseLibrary: "Disease Library"
- },
- fr: {
- welcomeBack: "Bon retour",
- healthRecord: "Dossier médical",
- healthJournal: "Journal de santé",
- diseaseLibrary: "Bibliothèque des maladies"
- }
- };
- utils/utils.js
- js
- export const formatDate = (date) => {
- return new Date(date).toLocaleDateString();
- };
- export const calculateBMI = (weight, height) => {
- return (weight
- api/integrations.js
- js
- import { base44 } from './base44Client';
- export const integrations = {
- fetchData: async (entity) => await base44.get(entity),
- saveData: async (entity, data) => await base44.post(entity, data)
- };
- components/assessment/AssessmentQuestions.jsx
- jsx
- export default function AssessmentQuestions({ questions }) {
- return (
- <div>
- {questions.map((q, i) => (
- <div key={i}>
- <label>{q.text}</label>
- <input type="text" />
- </div>
- ))}
- </div>
- );
- }
- components/assessment/BodyDiagram.jsx
- jsx
- export default function BodyDiagram() {
- return <svg>{/* body diagram drawing */}</svg>;
- }
- components/assessment/PainIntensityScale.jsx
- jsx
- export default function PainIntensityScale({ value, onChange }) {
- return (
- <input
- type="range"
- min="0"
- max="10"
- value={value}
- onChange={onChange}
- />
- );
- }
- components/dashboard/ReminderSection.jsx
- jsx
- export default function ReminderSection({ reminders }) {
- return (
- <ul>
- {reminders.map((r, i) => (
- <li key={i}>{r.title} - {r.due_date}</li>
- ))}
- </ul>
- );
- }
- components/doctor/DoctorReviews.jsx
- jsx
- export default function DoctorReviews({ reviews }) {
- return (
- <div>
- {reviews.map((rev, i) => (
- <p key={i}>{rev.comments} ({rev.rating}/5)</p>
- ))}
- </div>
- );
- }
- components/health-record/AddChildModal.jsx
- jsx
- export default function AddChildModal({ onSave }) {
- return (
- <form onSubmit={onSave}>
- <input placeholder="Child name" />
- <button type="submit">Save</button>
- </form>
- );
- }
- components/journal/JournalEntryForm.jsx
- jsx
- export default function JournalEntryForm({ onSubmit }) {
- return (
- <form onSubmit={onSubmit}>
- <textarea placeholder="Write your entry..." />
- <button type="submit">Add Entry</button>
- </form>
- );
- }
- components/results/ResultsSummary.jsx
- jsx
- export default function ResultsSummary({ results }) {
- return (
- <div>
- <h2>Summary</h2>
- <pre>{JSON.stringify(results, null, 2)}</pre>
- </div>
- );
- }
- components/ui/button.jsx
- jsx
- export default function Button({ children, onClick }) {
- return <button onClick={onClick}>{children}</button>;
- }
- hooks/use-mobile.jsx
- jsx
- import { useEffect, useState } from 'react';
- export default function useMobile() {
- const [isMobile, setIsMobile] = useState(false);
- useEffect(() => {
- const check = () => setIsMobile(window.innerWidth < 768);
- window.addEventListener('resize', check);
- check();
- return () => window.removeEventListener('resize', check);
- }, []);
- return isMobile;
- }
- lib/app-params.js
- js
- export const appParams = {
- appId: "your-app-id",
- serverUrl: "https://api.base44.com",
- token: "your-token",
- functionsVersion: "v1"
- };
- lib/AuthContext.jsx
- jsx
- import { createContext, useContext, useState } from 'react';
- const AuthContext = createContext(null);
- export const AuthProvider = ({ children }) => {
- const [user, setUser] = useState(null);
- return (
- <AuthContext.Provider value={{ user, setUser }}>
- {children}
- </AuthContext.Provider>
- );
- };
- export const useAuth = () => useContext(AuthContext);
- pages/Dashboard.jsx
- jsx
- export default function Dashboard() {
- return <h1>Dashboard</h1>;
- }
- pages/DoctorWorkspace.jsx
- jsx
- export default function DoctorWorkspace() {
- return <h1>Doctor Workspace</h1>;
- }
- utils/utils.js
- js
- export const formatDate = (date) => new Date(date).toLocaleDateString();
- export const calculateBMI = (w, h) => (w / ((h / 100) ** 2)).toFixed(2);
- this is just a part of the code there is way more but because i cannot doawnload the code i have copied a lot of it
Advertisement