Skip to content

Instantly share code, notes, and snippets.

@Nicomendia
Last active April 25, 2025 12:17
Show Gist options
  • Save Nicomendia/c3320eac327a1be687fc8638c47558e4 to your computer and use it in GitHub Desktop.
Save Nicomendia/c3320eac327a1be687fc8638c47558e4 to your computer and use it in GitHub Desktop.
{
"$metadata": {
"type": "PruebaDeOrdenMedica",
"uris": {
"jsonLdContext": "https://gist.githubusercontent.com/Nicomendia/cad2573240de3985d47c46e4e6e70be1/raw/b4aaff948224385355f896ba59ae93f3fea022b8/prueba-de-orden-medica.jsonld"
},
"version": "1.1"
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "El esquema “Orden médica” está diseñado para facilitar el intercambio seguro y privado de información sobre órdenes de éxamenes médicos.",
"title": "PruebaDeOrdenMedica",
"properties": {
"@context": {
"type": [
"string",
"array",
"object"
]
},
"expirationDate": {
"format": "date-time",
"type": "string"
},
"id": {
"type": "string"
},
"issuanceDate": {
"format": "date-time",
"type": "string"
},
"issuer": {
"type": [
"string",
"object"
],
"format": "uri",
"properties": {
"id": {
"format": "uri",
"type": "string"
}
},
"required": [
"id"
]
},
"type": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
},
"credentialSubject": {
"description": "Stores the data of the credential",
"title": "Credential subject",
"properties": {
"id": {
"description": "Stores the DID of the subject that owns the credential",
"title": "Credential subject ID",
"format": "uri",
"type": "string"
},
"tipo": {
"description": "Tipo de orden médica que se le emite al paciente. ejemplo: Análisis de sangre, Electrocardiograma, etc.",
"title": "Tipo de Orden",
"type": "string"
},
"descripcion": {
"description": "Descripción con detalles/observaciones acerca de la orden médica. Ej: Evaluación de función cardíaca.",
"title": "Descripción",
"type": "string"
},
"urgencia": {
"description": "Urgencia con la que se debe realizar el examen médico. Ej: Baja, Normal, Alta.",
"title": "Urgencia del examen",
"type": "string"
},
"fecha-de-creacion": {
"description": "Fecha de creación de la orden médica. Ej: 20250421 (2025-04-21)",
"title": "Fecha de creación",
"type": "integer"
}
},
"required": [],
"type": "object"
},
"credentialSchema": {
"properties": {
"id": {
"format": "uri",
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"id",
"type"
],
"type": "object"
},
"credentialStatus": {
"description": "Allows the discovery of information about the current status of the credential, such as whether it is suspended or revoked.",
"title": "Credential Status",
"properties": {
"id": {
"description": "Id URL of the credentialStatus.",
"title": "Id",
"format": "uri",
"type": "string"
},
"type": {
"description": "Expresses the credential status type (method). The value should provide enough information to determine the current status of the credential.",
"title": "Type",
"type": "string"
}
},
"required": [
"id",
"type"
],
"type": "object"
}
},
"required": [
"@context",
"id",
"issuanceDate",
"issuer",
"type",
"credentialSubject",
"credentialSchema"
],
"type": "object"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment