Skip to content

Instantly share code, notes, and snippets.

@chrisroane
Last active January 20, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisroane/00697799e1d2046740f34f87d65257c1 to your computer and use it in GitHub Desktop.
Save chrisroane/00697799e1d2046740f34f87d65257c1 to your computer and use it in GitHub Desktop.

Automatic Clinical Edge Requirements by Page

Clinical Edge Homepage

Example: http://www.mdedge.com/internalmedicinenews/clinical-edge

Blocks:

  • This Week's Must Reads:
    • Displays the most recent Clinical Edge summaries in the current publication.
    • Limited to 5.
    • Sorted by published date from most recent.
    • When you click a summary in the block it will take you to that summary within a stack context displaying the most recent 5 clinical edge summaries. See the 'Most Recent' stack context. See below.
  • Topic blocks:
    • Display the most recent Clinical Edge summaries in the current publication associated with the given topic.
    • Limited to 2.
    • Sorted by published date from most recent.
    • Title and more link direct user to the Clinical Edge topic page.
    • Clicking a summary will direct the user to that summary within a stack context of the most recent two-month grouping of summaries in the given topic which contain that summary. See the 'By Topic' stack context. See below.

Choose a Topic Page

Example: http://www.mdedge.com/internalmedicinenews/clinical-edge/topics

Blocks:

  • Topic blocks:
    • Display the most recent Clinical Edge summaries in the current publication associated with the given topic.
    • Limited to 2.
    • Sorted by published date from most recent.
    • Title and more link direct user to the Clinical Edge topic page.
    • Clicking a summary will direct the user to that summary within a stack context of the most recent two-month grouping of summaries in the given topic which contain that summary. See the 'By Topic' stack context. See below.

Topic Page

Example: http://www.mdedge.com/internalmedicinenews/clinical-edge/topics/dermatology

###Blocks:

  • Two-Month Groupings:
    • Display Clinical Edge summaries in the current publication, associated with the current topic, and published within the two-month time period.
    • Limit to 5.
    • Sorted by published date from most recent.
    • Title and more link direct user to the first summary in that two-month grouping stack context.
    • When you click a summary in the grouping it will take you to that summary within the two-month grouping stack context. See the 'By Topic' stack context. See below.

By Date Page

Example: http://www.mdedge.com/internalmedicinenews/clinical-edge/date

Blocks:

  • Must reads for this week:
    • Displays Clinical Edge summaries in the current publication.
    • Limit to 5
    • Sorted by published date from most recent.
    • Title and more link directs user to the first summary in the list within a stack context displaying the most recent 5 clinical edge summaries for the current publiction (the same list as appears in this block).
    • When you click a summary in the block it will take you to that summary within a stack context displaying the most recent 5 clinical edge summaries. See the 'Most Recent' stack context below.
  • Must reads by week:
    • Display Clinical edge summaries in the current publication and published within the given week.
    • Limit to 5.
    • Sorted by published date from most recent.
    • Title and more link directs user to the first summary in the list within a stack context displaying the rest of the summaries in that week.
    • When you click a summary in the block it will take you to that summary within a stack context displaying the rest of the summaries in that week. See the 'By Date' stack context below.

Clinical Edge Summary Page

Example: http://www.mdedge.com/internalmedicinenews/clinical-edge/summary/cardiology/cardiovascular-safety-nsaids-arthritis?ce_stack=5138

Stack Contexts:

Note: For all Stact Contexts, when there is no results for Next Set or Prev Set buttons, display a button that says "Clinical Edge Home" and links to the clinical edge homepage.

  • Most recent:
    • Contains Clinical Edge summaries limited to the current publication.
    • Sorted by published date starting with most recent.
    • Limit to 30.
    • "Prev Set" link should not exist when viewing the first summary (see the note above).
    • "Next Set" link should direct the user to the most recent summary which would fit the criteria for a "by date" stack. Conceptually this is the most recent "by date" stack. If Next Set button shouldn't show, see note above for all stack contexts.
    • After getting in here, we realized that this was conflicting with the data context when clicking the next set button (where it would show duplicate summaries). So instead, for this stack we are just going to display the by date stack limited to the most recent in the current week.
  • By date (week):
    • Contains Clinical Edge summaries limited to the current publication and a given date-range (always a week).
    • The week should end on Sunday (but include Sunday...so Mon-Sun).
    • Sorted by published date starting with most recent.
    • Limit to 30.
    • "Prev Set" It directs the user to the summary with the oldest publish date which is more recent than the given date rage. Conceptually this is the previous "by date" stack. If there is no "by date" stack before this one, see the note above.
    • "Next Set" link should direct the user to the most recent summary whose publish date is after the current date range. Conceptually this is the next "by date" stack. If there is no "by date" stack after this one, see the note above.
  • By topic (2-month periods):
    • Contains Clinical Edge summaries limited to the current publication, a given topic, and a given date-range (always a two-month range).
    • Sorted by published date starting with most recent.
    • Limit to 30.
    • "Prev Set" It directs the user to the summary associated with the current topic with the oldest publish date which is more recent than the given date rage. Conceptually this is the previous "by topic" stack. If there is no "by topic" stack before this one, see the note above.
    • "Next Set" link should direct the user to the most recent summary whose publish date is after the current date range. Conceptually this is the next "by date" stack. If there is no "by topic" stack after this one, see the note above.

Blocks (under summary):

  • Must Reads in (Topic):
    • Displays clinical edge summaries in the current publication associated with the given topic.
    • Limit to 5.
    • Sort by publish date starting with most recent.
    • Topic is determined by the first topic associated with the summary.
    • Clicking a summary takes you to that summary in the most recent "by topic" stack context containing the article.
  • This Week's Must Reads:
    • Displays clinical edge summaries in the current publication.
    • Limit to 5.
    • Sort by publish date starting with most recent.
    • Clicking a summary takes you to that summary in the "most recent" stack context.

Other Requirements:

  • The current position within the stack context will depend on where the current summary falls in the stack given the sort criteria.
  • Pagination links should let you navigate to the next/previous summary in the stack context. See stack contexts for what happens with pagination links when at the beginning or end of the stack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment