<commit_before>package spgui.widgets

import java.time._ //ARTO: Använder wrappern https://github.com/scala-js/scala-js-java-time
import java.text.SimpleDateFormat
import java.util.UUID

import japgolly.scalajs.react._
import japgolly.scalajs.react.vdom.prefix_<^._
import japgolly.scalajs.react.ReactDOM

import spgui.SPWidget
import spgui.widgets.css.{WidgetStyles => Styles}
import spgui.communication._

import sp.domain._
import sp.messages._
import sp.messages.Pickles._
import upickle._

import org.singlespaced.d3js.d3
import org.singlespaced.d3js.Ops._

import scala.concurrent.duration._
import scala.scalajs.js
import scala.util.{ Try, Success }
import scala.util.Random.nextInt

import org.scalajs.dom
import org.scalajs.dom.raw
import org.scalajs.dom.{svg => *}
import org.singlespaced.d3js.d3
import org.singlespaced.d3js.Ops._

import scalacss.ScalaCssReact._
import scalacss.Defaults._


// sealed trait API_PatientCardsService
// object API_PatientCardsService {
//   case class NewPatient() extends API_PatientCardsService
//   case class DiffPatient() extends API_PatientCardsService
//   case class RemovedPatient() extends API_PatientCardsService
//   case class Patient( careContactId: String, patientData: Map[String,Any]) extends API_PatientCardsService
//   case class elvisEvent( eventType: String, patient: Patient) extends API_PatientCardsService
//   case class State(state: State) extends API_PatientCardsService
//
//   val service = "patientCardsService"
// }

package API_PatientEvent {
  sealed trait PatientEvent
  case class NewPatient( careContactId: String, patientData: Map[String,Any]) extends PatientEvent
  case class DiffPatient( careContactId: String, patientData: Map[String,Any]) extends PatientEvent
  case class RemovedPatient( careContactId: String) extends PatientEvent
  case class Patient( careContactId: String, patientData: Map[String,Any]) extends PatientEvent
  case class elvisEvent( eventType: String, patient: Patient) extends PatientEvent

  sealed trait API_PatientCardsService
  case class State(state: State) extends API_PatientCardsService

  object attributes {
    val service = "patientCardsService"
  }
}<commit_msg>pre-merge with PatientCardsService that hr functioning communication<commit_after>package spgui.widgets

import java.time._ //ARTO: Använder wrappern https://github.com/scala-js/scala-js-java-time
import java.text.SimpleDateFormat
import java.util.UUID

import japgolly.scalajs.react._
import japgolly.scalajs.react.vdom.prefix_<^._
import japgolly.scalajs.react.ReactDOM

import spgui.SPWidget
import spgui.widgets.css.{WidgetStyles => Styles}
import spgui.communication._

import sp.domain._
import sp.messages._
import sp.messages.Pickles._
import upickle._

import org.singlespaced.d3js.d3
import org.singlespaced.d3js.Ops._

import scala.concurrent.duration._
import scala.scalajs.js
import scala.util.{ Try, Success }
import scala.util.Random.nextInt

import org.scalajs.dom
import org.scalajs.dom.raw
import org.scalajs.dom.{svg => *}
import org.singlespaced.d3js.d3
import org.singlespaced.d3js.Ops._

import scalacss.ScalaCssReact._
import scalacss.Defaults._


// sealed trait API_PatientCardsService
// object API_PatientCardsService {
//   case class NewPatient() extends API_PatientCardsService
//   case class DiffPatient() extends API_PatientCardsService
//   case class RemovedPatient() extends API_PatientCardsService
//   case class Patient( careContactId: String, patientData: Map[String,Any]) extends API_PatientCardsService
//   case class elvisEvent( eventType: String, patient: Patient) extends API_PatientCardsService
//   case class State(state: State) extends API_PatientCardsService
//
//   val service = "patientCardsService"
// }

package API_PatientEvent {
  sealed trait PatientEvent
  case class NewPatient( careContactId: String, patientData: Map[String,Any]) extends PatientEvent
  case class DiffPatient( careContactId: String, patientData: Map[String,Any]) extends PatientEvents
  case class RemovedPatient( careContactId: String) extends PatientEvent
  case class Patient( careContactId: String, patientData: Map[String,Any]) extends PatientEvent
  case class elvisEvent( eventType: String, patient: Patient) extends PatientEvent

  sealed trait API_PatientCardsService
  case class State(state: State) extends API_PatientCardsService

  object attributes {
    val service = "patientCardsService"
  }
}
{'fraction_non_alphanumeric': 0.08566907775768536, 'fraction_numerical': 0.0027124773960217, 'mean_word_length': 5.357758620689655, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '7391207', 'n_tokens_mistral': 1403, 'n_tokens_neox': 1338, 'n_words': 346}