ЕСОЗ - публічна документація

Encounter

ValidationSD
resourceType

meta.profile


subject (patient_id) validate:

  1. is sent
  2. patient_id is UUID
  3. patient exists in DB
  4. patient is active and is_active=true


  •  
  •  
  •  
  •  

id validate:

  1. is sent
  2. encounter_id is UUID
  3. that $.{encounter}[*].id from the payload are all unique among themselves
  4. there is no entity with such id in the corresponding Medical events collection


  •  
  •  
  •  
  •  

status validate:

  1. by dictionary eHealth/encounter_statuses


  •  
date validate:
  1. is sent
  2. date is real
  3. current_date-encounter_max_days_passed  >= date <= current_date


  •  
  •   
  •  

visit. validate:

  1. is sent
  2. visit as reference 
  3. "visit" is a visit that belongs to the current patient


  •  
  •  
  •  

episodeOfCare (episode) validate 

  1. is sent
  2. episode as reference 
  3. $.encounter.episode.identifier.value is one of  ME.patinet{patient_id}.episodes{*}.id
  4. ME.patient{patinet_id}.episodes{episode_id}.status = 'active'
  5. ME.patient{patinet_id}.episodes{episode_id}.managing_organization==token.client_id


  •  
  •  
  •  
  •  
  •  

basedOn (incoming referrals). Validate:

  1. as reference 
  2. is used_by_legal_entity.identifier.value==token.client_id OR null
  3. status==active or program_processing_status=in_progress (any status is valid in case program_processing_status = in_progress)
  4. category=='409063005' (Counselling)
  5. program is defined program_processing_status=new, in_queue or in_progress


  •  
  •  
  •  
  •  
  •  

class. Validate:

  1. is sent
  2. as coding item
  3. by dictionary eHealth/encounter_classes


  •  
  •  
  •  

type. Validate:

  1. is sent
  2. is codable concept
  3. by dictionary eHealth/encounter_types


  •  
  •  
  •  

participant. performer. Validate

  1. is sent
  2. performer as a reference to employee
  3. employee status = active and is_active=true
  4. is an ID of existing employee in PRM.Employees
  5. PRM.Employees.legal_entity== client_id


  •  
  •  
  •  
  •   
  •  

serviceProvider. Validate

  1. is sent
  2. serviceProvider as a reference to legal_entity
  3. legal_entity status = active and is_active=true
  4. legal_entity.id == token.client_id


  •  
  •  
  •  
  •   

reasons. Validate:

  1. by dictionaries eHealth/ICPC2/reasons OR eHealth/ambulatory/reasons


  •  

diagnoses. Validate:

diagnosis.condition

  1. is sent
  2. as reference to condition
  3. condition is not in status `entered_in_error`
  4. condition is made for the same patient

diagnosis.use

  1. codable_concept

diagnosis.rank

  1. string


  •  
  •  
  •  
  •  

actions. Validate:

  1. by dictionaries eHealth/ICPC2/actions OR eHealth/ambulatory/actions


  •   

location division. Validate:

  1. as a reference to division 
  2. PRM.division.status = "ACTIVE" and is-active=true
  3. PRM.division.legal_entity= token.client_id


  •  
  •  
  •  

prescriptions. Validate:

  1. as a string with max length = 2000 


  •  

supporting_info. Validate:

  1. as a reference to "observation" or "diagnostic_report"
  2. validate "observation" or "diagnostic_report" is not in status `entered_in_error`


  •   
  •  

hospitalization.admitSource

  1. is codable concept
  2. by dictionary eHealth/encounter_sadmitSource


  •   
  •  

hospitalization.reAdmission

  1. is codable concept
  2. by dictionary eHealth/encounter_reAdmission


  •   
  •  

encounter.priority

  1. is codable concept
  2. by dictionary eHealth/encounter_priority


  •   
  •  

encounter.period


ЕСОЗ - публічна документація