text: # -*- coding: utf-8 -*-
  """
  Profile: http://hl7.org/fhir/StructureDefinition/VerificationResult
  Release: R4
  Version: 4.0.1
  Build ID: 9346c8cc45
  Last updated: 2019-11-01T09:29:23.356+11:00
  """
  from pydantic.validators import bytes_validator  # noqa: F401
  
  from .. import fhirtypes  # noqa: F401
  from .. import verificationresult
  
  
  def impl_verificationresult_1(inst):
      assert inst.id == "example"
      assert inst.meta.tag[0].code == "HTEST"
      assert inst.meta.tag[0].display == "test health data"
      assert (
          inst.meta.tag[0].system == "http://terminology.hl7.org/CodeSystem/v3-ActReason"
      )
      assert inst.status == "attested"
      assert inst.text.div == (
          '<div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated '
          "Narrative with Details</b></p><p><b>id</b>: "
          "example</p><p><b>status</b>: attested</p></div>"
      )
      assert inst.text.status == "generated"
  
  
  def test_verificationresult_1(base_settings):
      """No. 1 tests collection for VerificationResult.
      Test File: verificationresult-example.json
      """
      filename = base_settings["unittest_data_dir"] / "verificationresult-example.json"
      inst = verificationresult.VerificationResult.parse_file(
          filename, content_type="application/json", encoding="utf-8"
      )
      assert "VerificationResult" == inst.resource_type
  
      impl_verificationresult_1(inst)
  
      # testing reverse by generating data from itself and create again.
      data = inst.dict()
      assert "VerificationResult" == data["resourceType"]
  
      inst2 = verificationresult.VerificationResult(**data)
      impl_verificationresult_1(inst2)
  