rkboyce / DomeoClient

Domeo Annotator GWT client
Apache License 2.0
1 stars 2 forks source link

prototype and LinkedSPLs: how to handle "Highlights" #31

Open rkboyce opened 10 years ago

rkboyce commented 10 years ago

The stylesheet for SPLs computes the "Highlights" section by pulling together in order excerpts from several sections including

34066-1 BOXED WARNING SECTION 49489-8 MICROBIOLOGY SECTION 43683-2 RECENT MAJOR CHANGES SECTION

A full description of the profess is found in the comments of the stylesheet:

<!-- MODE HIGHLIGHTS -->
<!-- Requirements: there used to be a lot of content created from data, now that is less and more is just written.
         certain rearrangements are still made. sequence:
         - frontmatter (material that is before any section)
         - highlights title: "HIGHLIGHTS OF PRESCRIBING INFORMATION" -> generated title
         - highlights limitation statement: "these highlights do not ..." -> from document title (FIXME)
         - highlights drug title: "Cifidipan for immersion in bathtub" -> from document title
         - initial US approval year: "Initial U.S. Approval: 2099" -> from document title
         - recent major changes -> pulled up from recent major changes section
         - microbiology advisory "To reduce ... drug-resistant ..." -> microbiology highlight pulled up
         - what gets pulled up into the frontmatter is determined by $standardSection/*[@highlightfrontmatter]
         - boxed warning section (no title shown, and the box)
         - all others (except frontmatter pull-up)
         - backmatter
         - BPCA pediatric advisory like microbiology but pulled last at the end of the highlights (after the revision date.)
         - patient counseling information reference 34076-0 text based on what other sections are ther
         * 38056-8 supplemental patient material
         * 42231-1 medguide
         * 42230-3 patient package insert
         [reverse engineered requirements
         - -42231-1 -38056-8 -42230-3 => See 17 for PATIENT COUNSELING INFORMATION
         - -42231-1 +38056-8|+42230-3 => See 17 for PCI and FDA-approved patient labeling
         - +42231-1 -38056-8|-42230-3 => See 17 for PCI and Medication Guide
         - +42231-1 +38056-8 +42230-3 => See 17 for PCI and Medication Guide]
         if 42231-1 is subsection of 34076-0 add "and Medication Guide"
         if 42231-1 is not there but patient package insert add "and FDA-approved patient labeling"
         just make reference to any of these 3 sub-sections - any $standardSection/*[@patsec]
         it should not labeled as section "17" if it isn't 17
-->

So, its seems that I will need to extend LinkedSPLs to include the generated highlights as a separate section. Then, so long as the we annotate the sections used to generate highlights, we should be able to show those annotations in the context of an excerpt from highlights section within the prototype.