pub struct CimaClient { /* private fields */ }Expand description
Client for interacting with the CIMA REST API
Implementations§
Source§impl CimaClient
impl CimaClient
Source§impl CimaClient
impl CimaClient
Sourcepub async fn get_change_log(
&self,
date: &str,
registration_numbers: Option<&[&str]>,
) -> Result<PaginatedResponse<ChangeRecord>>
pub async fn get_change_log( &self, date: &str, registration_numbers: Option<&[&str]>, ) -> Result<PaginatedResponse<ChangeRecord>>
Get change log from a specific date
Returns a paginated response with medication changes
§Arguments
date- Date in format “dd/mm/yyyy”registration_numbers- Optional list of registration numbers to filter
Source§impl CimaClient
impl CimaClient
Sourcepub async fn search_clinical_descriptions(
&self,
params: &SearchClinicalDescriptionParams,
) -> Result<PaginatedResponse<ClinicalDescription>>
pub async fn search_clinical_descriptions( &self, params: &SearchClinicalDescriptionParams, ) -> Result<PaginatedResponse<ClinicalDescription>>
Search clinical descriptions (VMP/VMPP)
Returns a paginated response with clinical descriptions
Source§impl CimaClient
impl CimaClient
Sourcepub async fn get_document_sections(
&self,
doc_type: DocumentType,
registration_number: &str,
) -> Result<Vec<Section>>
pub async fn get_document_sections( &self, doc_type: DocumentType, registration_number: &str, ) -> Result<Vec<Section>>
Get document sections list (without content)
Sourcepub async fn get_document_content(
&self,
doc_type: DocumentType,
registration_number: &str,
section: Option<&str>,
) -> Result<Vec<Section>>
pub async fn get_document_content( &self, doc_type: DocumentType, registration_number: &str, section: Option<&str>, ) -> Result<Vec<Section>>
Get document section content
Sourcepub async fn get_technical_sheet_html(
&self,
registration_number: &str,
) -> Result<String>
pub async fn get_technical_sheet_html( &self, registration_number: &str, ) -> Result<String>
Get complete technical data sheet in HTML
Sourcepub async fn get_technical_sheet_section_html(
&self,
registration_number: &str,
section: &str,
) -> Result<String>
pub async fn get_technical_sheet_section_html( &self, registration_number: &str, section: &str, ) -> Result<String>
Get a specific section of the technical data sheet in HTML
Sourcepub async fn get_package_leaflet_html(
&self,
registration_number: &str,
) -> Result<String>
pub async fn get_package_leaflet_html( &self, registration_number: &str, ) -> Result<String>
Get complete package leaflet in HTML
Source§impl CimaClient
impl CimaClient
Sourcepub async fn get_master_data(
&self,
data_type: MasterDataType,
params: &MasterDataParams,
) -> Result<PaginatedResponse<MasterItem>>
pub async fn get_master_data( &self, data_type: MasterDataType, params: &MasterDataParams, ) -> Result<PaginatedResponse<MasterItem>>
Get elements from a master data catalog (reference catalog)
Important: The CIMA API requires at least one filter parameter to be set (name, id, code, narcotic, psychotropic, narcotic_or_psychotropic, or in_use). Without any filter, the API returns 204 No Content.
Returns a paginated response with master data items.
Source§impl CimaClient
impl CimaClient
Sourcepub async fn get_informative_materials(
&self,
registration_number: &str,
) -> Result<SafetyMaterial>
pub async fn get_informative_materials( &self, registration_number: &str, ) -> Result<SafetyMaterial>
Get informative materials associated with a medication
Returns a single SafetyMaterial object (not an array)
Source§impl CimaClient
impl CimaClient
Sourcepub async fn get_medication(
&self,
registration_number: Option<&str>,
national_code: Option<&str>,
) -> Result<Medication>
pub async fn get_medication( &self, registration_number: Option<&str>, national_code: Option<&str>, ) -> Result<Medication>
Get medication information by registration number or national code
Sourcepub async fn search_medications(
&self,
params: &SearchMedicationsParams,
) -> Result<PaginatedResponse<MedicationSummary>>
pub async fn search_medications( &self, params: &SearchMedicationsParams, ) -> Result<PaginatedResponse<MedicationSummary>>
Search medications according to specified parameters
Returns a paginated response with medication search results.
Sourcepub async fn search_in_technical_sheet(
&self,
queries: &[TechnicalSheetQuery],
) -> Result<Vec<MedicationSummary>>
pub async fn search_in_technical_sheet( &self, queries: &[TechnicalSheetQuery], ) -> Result<Vec<MedicationSummary>>
Search medications by content in technical data sheet
Source§impl CimaClient
impl CimaClient
Sourcepub async fn get_presentation(
&self,
national_code: &str,
) -> Result<Presentation>
pub async fn get_presentation( &self, national_code: &str, ) -> Result<Presentation>
Get presentation information by national code
Sourcepub async fn search_presentations(
&self,
params: &SearchPresentationsParams,
) -> Result<PaginatedResponse<PresentationSummary>>
pub async fn search_presentations( &self, params: &SearchPresentationsParams, ) -> Result<PaginatedResponse<PresentationSummary>>
Search presentations according to specified parameters
Returns a paginated response with presentation search results.
Source§impl CimaClient
impl CimaClient
Sourcepub async fn get_safety_notes(
&self,
registration_number: &str,
) -> Result<Vec<SafetyNote>>
pub async fn get_safety_notes( &self, registration_number: &str, ) -> Result<Vec<SafetyNote>>
Get safety notes associated with a medication
Source§impl CimaClient
impl CimaClient
Sourcepub async fn get_all_supply_problems(
&self,
) -> Result<PaginatedResponse<SupplyProblem>>
pub async fn get_all_supply_problems( &self, ) -> Result<PaginatedResponse<SupplyProblem>>
Get all current supply problems
Returns a paginated response with all active supply problems.
Sourcepub async fn get_supply_problems(
&self,
national_code: &str,
) -> Result<PaginatedResponse<SupplyProblem>>
pub async fn get_supply_problems( &self, national_code: &str, ) -> Result<PaginatedResponse<SupplyProblem>>
Get supply problems for a specific presentation by national code
Returns a paginated response with supply problems for the specified CN
Trait Implementations§
Source§impl Clone for CimaClient
impl Clone for CimaClient
Source§fn clone(&self) -> CimaClient
fn clone(&self) -> CimaClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more