Skip to content

Main content

Leaflet Language Support Share Tool

Calculate leaflet language support share from explicit caller-supplied inputs.

Loading tool…

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

  1. Enter requiredLanguages, suppliedLanguages, editionLabels, requiredEdition. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
requiredLanguagesRequired LanguagesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
suppliedLanguagesSupplied LanguagesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
editionLabelsEdition LabelsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
requiredEditionRequired EditionRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
requiredRequiredRequired. Safe integer.
languagePresentLanguage PresentRequired. Safe integer.
currentEditionLanguagesDistinct required languages with at least one matching required-edition record.Required. Safe integer.
shareDimensionless numerator/denominator ratio under the explicit basis above.Required. Finite number.
definedWhether the stated denominator or information basis permits interpretation of the associated value; inspect before using a placeholder.Required. Boolean.
json
{
  "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

  1. Calculation and input contract: community-pharmacy/leaflet-language-support-share — tool.io

Similar or alternative tools