CrimsonCare
CrimsonCare is a C project designed to provide a robust solution for blood management.
 
Loading...
Searching...
No Matches
hospital_manager.h
Go to the documentation of this file.
1
31#ifndef HOSPITAL_MANAGER_H
32#define HOSPITAL_MANAGER_H
33
34#include <stdio.h>
35#include <stdlib.h>
36#include <string.h>
37#include <time.h>
38#include <stdbool.h>
39#include <errno.h>
40
41#include "admin_manager.h"
42
48#define MAX_HOSPITAL_NAME_LENGTH 100
49
55#define MAX_HOSPITAL_LOCATION_LENGTH 100
56
62#define MAX_HOSPITAL_CODE_LENGTH 8
63
75
93void loadHospitals(void);
94
107void saveHospitals(void);
108
129char* addHospital(const char* name, const char* location);
130
147bool validateHospitalCode(const char* code);
148
171bool deleteHospital(const char* code, const char* adminUsername, const char* adminPassword);
172
189char* getHospitalNameByCode(const char* code);
190
199void displayHospitals(void);
200
209void freeHospital(void);
210
211#endif
Admin manager header file.
#define MAX_HOSPITAL_CODE_LENGTH
Maximum hospital code length.
#define MAX_HOSPITAL_LOCATION_LENGTH
Maximum hospital location length.
#define MAX_HOSPITAL_NAME_LENGTH
Maximum hospital name length.
Hospital structure.
struct Hospital * next
char code[MAX_HOSPITAL_CODE_LENGTH]
char location[MAX_HOSPITAL_LOCATION_LENGTH]
char name[MAX_HOSPITAL_NAME_LENGTH]