GET - SelfcareProduct
Get selfcare product information based on Eancode
URL
Verb |
Url |
GET - Basic authentication |
/api/SelfcareProduct/eancode |
Request Url
Parameter |
Description |
Format |
Eancode |
Ean13 code of the product |
string |
Response Elements
{
"gtin": "EAN-13"",
"additionalTradeItemIdentificationValue": "Additional trade item identification",
"regulatedProductName": "Regulated product name",
"registrationCode": "code"",
"certificationValue": "ATC Code",
"dosageFormType": "Dosage form type",
"usageIndication": "Usage indication",
"usageRestriction": "Usage restriction",
"visitDoctorWhen": "Visit doctor when",
"netContent": {
"netContent": 20,
"netContent-unit": "Unit"
},
"gpc": {
"code": "Gpc code",
"description": "Gpc description"
},
"dosageRecommendation": {
"dosage": "Dosage",
"maxDailyDosage": "Maximum daily dosage",
"targetConsumerAge": "Traget consumer age",
"usageAdvice": "Usage advice"
},
"storageRecommendation": {
"storage": "Storage instruction",
"removal": "Removal instruction",
"shelfLife": "Shelflife"
},
"drugSideEffectsAndWarnings": [
{
"warning": "Drug sideeffects and warnings"
}
],
"consumerSalesCondition": {
"code": "Consumer sales condition - code",
"description": "Consumer sales condition - description"
},
"contraUsage": {
"contraUsageIndication": "Contra usage indication",
"useInPregnancy": "Use in pregnancy",
"useInBreastFeeding": "Use in breastfeeding"
},
"activeIngredients": [
{
"ingredient": "active ingredients - ingredient",
"amount": 20,
"unit": "Unit"
}
],
"documents": [
{
"description": "Documents - description",
"link": "Url to document"
}
],
"icons": [
{
"code": "Icons - code",
"description": "Icons - description",
"icon": "Url to icon"
}
],
"fieldofApplication": {
"fieldOfApplication": "Field of application"
},
"ingredientStatements": [
{
"ingredient": "Ingredient statement - ingredient",
"content": 100,
"unit": "Ingredient statement - unit"
}
],
"healthClaims": [
{
"ingredient": "Healthclaim - Ingredient",
"healthClaimDescription": "Healthclaim - Description"
}
],
"excipients": [
{
"excipientIngredientStatement": "Excipient - Statement",
"excipientIngredientStatementWarning": "Excipient - Warning"
}
]
}
Code Samples
C#.net
public string RequestUrlGET(string URL, string SourceUser, string SourcePassword)
{
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(URL);
string credentials = Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(SourceUser + ":" + SourcePassword));
request.Headers.Add("Authorization", "Basic " + credentials);
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
using (StreamReader content = new StreamReader(response.GetResponseStream()))
{
return content.ReadToEnd();
}
}
}