mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Agrego matricula a receta y vacuna
This commit is contained in:
parent
0906252217
commit
cc8b7db5aa
5 changed files with 8 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ type Receta struct {
|
|||
Practitioner string `json:"practitioner"`
|
||||
PractitionerDocumentNumber string `json:"practitionerDocumentNumber"`
|
||||
Signature string `json:"signature"`
|
||||
Matricula string `json:"matricula"`
|
||||
}
|
||||
|
||||
type Vacuna struct {
|
||||
|
|
@ -50,6 +51,7 @@ type Vacuna struct {
|
|||
Reactions string `json:"reactions"` // puede ser un string o una estructura si querés después
|
||||
Practitioner string `json:"practitioner"`
|
||||
PractitionerDocumentNumber string `json:"practitionerDocumentNumber"`
|
||||
Matricula string `json:"matricula"`
|
||||
}
|
||||
|
||||
type Estado string
|
||||
|
|
@ -85,6 +87,7 @@ func (s *SmartContract) InitLedger(ctx contractapi.TransactionContextInterface)
|
|||
Practitioner: "practitioner",
|
||||
PractitionerDocumentNumber: "123456789",
|
||||
Signature: "signature",
|
||||
Matricula: "matricula123",
|
||||
},
|
||||
{
|
||||
ID: "receta2",
|
||||
|
|
@ -107,6 +110,7 @@ func (s *SmartContract) InitLedger(ctx contractapi.TransactionContextInterface)
|
|||
Practitioner: "practitioner",
|
||||
PractitionerDocumentNumber: "123456789",
|
||||
Signature: "signature",
|
||||
Matricula: "matricula456",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -226,6 +226,7 @@ public class RecetaController {
|
|||
dto.setFechaDeAutorizacion(receta.getFechaDeAutorizacion());
|
||||
dto.setCantidad(receta.getCantidad());
|
||||
dto.setExpectedSupplyDuration(receta.getExpectedSupplyDuration());
|
||||
dto.setMatricula(receta.getMatricula());
|
||||
dto.setPractitioner(receta.getPractitioner());
|
||||
dto.setPractitionerDocumentNumber(receta.getPractitionerDocumentNumber());
|
||||
dto.setSignature(receta.getSignature());
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@ public class VacunaController {
|
|||
dto.setExpirationDate(vacuna.getExpirationDate());
|
||||
dto.setPatientDocumentNumber(vacuna.getPatientDocumentNumber());
|
||||
dto.setReactions(vacuna.getReactions());
|
||||
dto.setMatricula(vacuna.getMatricula());
|
||||
dto.setPractitioner(vacuna.getPractitioner());
|
||||
dto.setPractitionerDocumentNumber(vacuna.getPractitionerDocumentNumber());
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ public class Receta {
|
|||
private String cantidad;
|
||||
//@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private String expectedSupplyDuration;
|
||||
private String matricula;
|
||||
private String practitioner;
|
||||
private String practitionerDocumentNumber;
|
||||
private String signature;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ public class Vacuna {
|
|||
private String expirationDate;
|
||||
private String patientDocumentNumber;
|
||||
private String reactions;
|
||||
private String matricula;
|
||||
private String practitioner;
|
||||
private String practitionerDocumentNumber;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue