<commit_before>// Patient view of medication details that shows on click 
// React / Redux
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { Router, Route, Link, browserHistory } from 'react-router';
// Components
import Medication from '../../components/medication-dash/meds-page/medication-class.jsx';


class MedicationDetail extends Component {
  constructor(props){
    super(props);
  }
  
  render(){
    const { chosenMed } = this.props;

    if(chosenMed.first){
      return (
      <div>
        <ul>
          <li>
            <h3><i className="fa fa-calendar-check-o" aria-hidden="true"></i> Start</h3>
            { chosenMed.start_date ?
              chosenMed.start_date :
              "No data" }
          </li>
          <li>
            <h3><i className="fa fa-calendar-times-o" aria-hidden="true"></i>End</h3>
            { chosenMed.end_date ?
              chosenMed.end_date :<commit_msg>fixed med-date<commit_after>// Patient view of medication details that shows on click 
// React / Redux
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { Router, Route, Link, browserHistory } from 'react-router';
// Components
import Medication from '../../components/medication-dash/meds-page/medication-class.jsx';


class MedicationDetail extends Component {
  constructor(props){
    super(props);
  }
  
  render(){
    const { chosenMed } = this.props;

    if(chosenMed.first){
      return (
      <div>
        <ul>
          <li>
            <h3><i className="fa fa-calendar-check-o" aria-hidden="true"></i> Start</h3>
            { chosenMed.start_date ?
              chosenMed.start_date.slice(0,10) :
              "No data" }
          </li>
          <li>
            <h3><i className="fa fa-calendar-times-o" aria-hidden="true"></i>End</h3>
            { chosenMed.end_date ?
              chosenMed.end_date.slice(0,10) :
{'fraction_non_alphanumeric': 0.14066496163682865, 'fraction_numerical': 0.007161125319693095, 'mean_word_length': 2.3096446700507616, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2493637', 'n_tokens_mistral': 600, 'n_tokens_neox': 599, 'n_words': 133}