{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shepherd-vet/json-schema/shepherd-vet-restcollection-model-base-open-api-diagnosis-discharge-instruction-controller-diagnosis-discharge-instruction-schema.json",
  "title": "RESTCollectionModelBase_OpenApiDiagnosisDischargeInstructionController.DiagnosisDischargeInstruction",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shepherd-vet-diagnosisdischargeinstruction-api-openapi.yml#/components/schemas/RESTCollectionModelBase_OpenApiDiagnosisDischargeInstructionController.DiagnosisDischargeInstruction",
  "type": "object",
  "properties": {
    "embed": {
      "type": "string"
    },
    "item": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenApiDiagnosisDischargeInstructionController.DiagnosisDischargeInstruction"
      }
    },
    "page": {
      "format": "int32",
      "type": "integer"
    },
    "recordsPerPage": {
      "format": "int32",
      "type": "integer"
    },
    "searchQuery": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "totalRecords": {
      "format": "int32",
      "type": "integer"
    }
  },
  "$defs": {
    "OpenApiDiagnosisDischargeInstructionController.DiagnosisDischargeInstruction": {
      "description": "Diagnosis Discharge Instruction REST model.",
      "type": "object",
      "properties": {
        "clinicId": {
          "description": "Unique identifier representing the related Clinic entity.",
          "type": "string"
        },
        "description": {
          "description": "Free-text field indicating description for Diagnosis Discharge Instruction.",
          "type": "string"
        },
        "isActive": {
          "description": "A value indicating whether this instance is active. true if this instance is active; otherwise, false.",
          "type": "boolean"
        },
        "snomedDiagnosisDescription": {
          "$ref": "#/$defs/OpenApiDiagnosisDischargeInstructionController.SnomedDiagnosisDescription",
          "description": "Object representing related SnomedDiagnosisDescription entity."
        },
        "snomedDiagnosisDescriptionId": {
          "format": "uuid",
          "description": "Unique identifier representing the SNOMED diagnosis description entity.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiDiagnosisDischargeInstructionController.SnomedDesignationType": {
      "description": "SnomedDesignationType lookup REST model",
      "type": "object",
      "properties": {
        "abrv": {
          "description": "Short unique identifier for the lookup.",
          "type": "string"
        },
        "description": {
          "description": "The description of the lookup entry.",
          "type": "string"
        },
        "name": {
          "description": "The name of the lookup entry.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiDiagnosisDischargeInstructionController.SnomedDiagnosis": {
      "description": "SnomedDiagnosis REST model.",
      "type": "object",
      "properties": {
        "snomedConceptId": {
          "description": "Unique SNOMED concept identifier assigned to SnomedDiagnosis.",
          "type": "string"
        },
        "snomedSubsetType": {
          "$ref": "#/$defs/OpenApiDiagnosisDischargeInstructionController.SnomedSubsetType",
          "description": "Object representing related SnomedSubsetType entity. One of \"AAHA\", \"AAEP\", \"SAS\""
        },
        "subsetTypeId": {
          "description": "Unique identifier representing the related SubsetType entity.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiDiagnosisDischargeInstructionController.SnomedDiagnosisDescription": {
      "description": "SnomedDescription REST model.",
      "type": "object",
      "properties": {
        "description": {
          "description": "Free-text field indicating description for Snomed Diagnosis.",
          "type": "string"
        },
        "designationTypeId": {
          "format": "uuid",
          "description": "Unique identifier representing the related DesignationType entity.",
          "type": "string"
        },
        "diagnosisId": {
          "description": "Unique identifier representing the related Diagnosis entity.",
          "type": "string"
        },
        "dischargeInstructionDescription": {
          "description": "Free-text field indicating description for the discharge instruction.",
          "type": "string"
        },
        "dischargeInstructionIsActive": {
          "description": "Flag indicating whether discharge instruction is active.",
          "type": "boolean"
        },
        "snomedDescriptionId": {
          "description": "Unique identifier representing the related SnomedDescription entity.",
          "type": "string"
        },
        "snomedDesignationType": {
          "$ref": "#/$defs/OpenApiDiagnosisDischargeInstructionController.SnomedDesignationType",
          "description": "Object representing related SnomedDesignationType."
        },
        "snomedDiagnosis": {
          "$ref": "#/$defs/OpenApiDiagnosisDischargeInstructionController.SnomedDiagnosis",
          "description": "Objet representing related SnomedDiagnosis entity."
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiDiagnosisDischargeInstructionController.SnomedSubsetType": {
      "description": "SnomedSubsetType lookup REST model",
      "type": "object",
      "properties": {
        "abrv": {
          "description": "Short unique identifier for the lookup.",
          "type": "string"
        },
        "description": {
          "description": "The description of the lookup entry.",
          "type": "string"
        },
        "name": {
          "description": "The name of the lookup entry.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    }
  }
}