Description
Return current-edition leaflet coverage by required language.
Pharmacy administration separates inventory, document identity, authorization, service timing and financial records from clinical decisions. Matching labels or a positive local predicate can reconcile supplied metadata without authenticating medicine, establishing lawful supply or determining appropriate care.
Return current-edition leaflet coverage by required language.
When to use this tool
Use Leaflet Language Support Share when checking the stated pharmacy record, inventory, timing, coverage or cost convention.
How to use the tool and how it works
- Enter requiredLanguages, suppliedLanguages, editionLabels, requiredEdition. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read required, languagePresent, currentEditionLanguages, share, defined. Inspect defined before interpreting the associated values.
Return current-edition leaflet coverage by required language. Require aligned suppliedLanguages/editionLabels; deduplicate required languages, count literal language matches and those with any required-edition match; share = current/required or zero with defined false.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| requiredLanguages | Required Languages | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| suppliedLanguages | Supplied Languages | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| editionLabels | Edition Labels | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| requiredEdition | Required Edition | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| required | Required | Required. Safe integer. |
| languagePresent | Language Present | Required. Safe integer. |
| currentEditionLanguages | Distinct required languages with at least one matching required-edition record. | Required. Safe integer. |
| share | Dimensionless numerator/denominator ratio under the explicit basis above. | Required. Finite number. |
| defined | Whether the stated denominator or information basis permits interpretation of the associated value; inspect before using a placeholder. | Required. Boolean. |
{
"input": {
"requiredLanguages": [
"en",
"fr"
],
"suppliedLanguages": [
"en",
"fr"
],
"editionLabels": [
"v2",
"v1"
],
"requiredEdition": "v2"
},
"output": {
"required": 2,
"languagePresent": 2,
"currentEditionLanguages": 1,
"share": 0.5,
"defined": true
}
} Limitations and assumptions
- Any matching duplicate can count as current; actual leaflet content, translation quality and legal information duties are not verified.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use verified medicine/service records and applicable professional procedures; consult a qualified pharmacist or other appropriate professional for clinical, legal or safe-supply decisions.
References
Similar or alternative tools
- Community Pharmacy Recall Contact Count Gap
Return contact gaps among unique affected recall IDs.
- Review Item Completion Share
Return completion share of required review items.