vital-software/scala-redox

View on GitHub
src/main/scala/com/github/vitalsoftware/scalaredox/models/Procedures.scala

Summary

Maintainability
A
1 hr
Test Coverage
package com.github.vitalsoftware.scalaredox.models

import com.github.vitalsoftware.macros._
import com.github.vitalsoftware.util.RobustPrimitives

/**
 * @param Observations These are procedures that are more observational in nature, such as an EEG or EKG.
 * @param Procedures The procedure that was performed. SNOMED CT
 * @param Services These are procedures that are service-oriented in nature, such as a dressing change, or feeding a patient.
 */
@jsonDefaults case class Procedures(
  Observations: Seq[ProcedureObservation] = Seq.empty,
  Procedures: Seq[CodeWithStatus] = Seq.empty,
  Services: Seq[CodeWithStatus] = Seq.empty
)

object Procedures extends RobustPrimitives

/**
 * This section documents three types of things: diagnostic procedures, procedures that change the body, and services performed by clinical staff.
 *
 * @param ProceduresText Free text form of the procedures summary
 * @param Procedures A general grouper for all things that CDA considers procedures.
 */
@jsonDefaults case class ProceduresMessage(
  ProceduresText: Option[String] = None,
  Procedures: Procedures
)

object ProceduresMessage extends RobustPrimitives