-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- This API is used to record mammography results Link to documentation: [https://savannahghi.atlassian.net/wiki/spaces/OHE/pages/468025506/API+Documentation#Record-Mammography-Result] Signed-off-by: Kathurima Kimathi <kathurimakimathi415@gmail.com>
- Loading branch information
1 parent
3f5b1dc
commit 2d21d2f
Showing
16 changed files
with
758 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
package dto | ||
|
||
type DiagnosticReportOutput struct { | ||
ID string `json:"id,omitempty"` | ||
type DiagnosticReport struct { | ||
ID string `json:"id,omitempty"` | ||
Status ObservationStatus `json:"status,omitempty"` | ||
PatientID string `json:"patientID,omitempty"` | ||
EncounterID string `json:"encounterID,omitempty"` | ||
Issued string `json:"issued,omitempty"` | ||
Result []*Observation `json:"result,omitempty"` | ||
Media []*Media `json:"media,omitempty"` | ||
Conclusion string `json:"conclusion,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,81 @@ | ||
package domain | ||
|
||
// DiagnosticReport is documented here http://hl7.org/fhir/StructureDefinition/DiagnosticReport | ||
type DiagnosticReport struct { | ||
ID *string `json:"id,omitempty"` | ||
Meta *FHIRMeta `json:"meta,omitempty"` | ||
ImplicitRules *string `json:"implicitRules,omitempty"` | ||
Language *string `json:"language,omitempty"` | ||
Text *FHIRNarrative `json:"text,omitempty"` | ||
Extension []*Extension `json:"extension,omitempty"` | ||
ModifierExtension []*Extension `json:"modifierExtension,omitempty"` | ||
Identifier []*FHIRIdentifier `json:"identifier,omitempty"` | ||
BasedOn []*FHIRReference `json:"basedOn,omitempty"` | ||
Status DiagnosticReportStatusEnum `json:"status"` | ||
Category []*FHIRCodeableConcept `json:"category,omitempty"` | ||
Code FHIRCodeableConcept `json:"code"` | ||
Subject *FHIRReference `json:"subject,omitempty"` | ||
Encounter *FHIRReference `json:"encounter,omitempty"` | ||
EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` | ||
EffectivePeriod *FHIRPeriod `json:"effectivePeriod,omitempty"` | ||
Issued *string `json:"issued,omitempty"` | ||
Performer []*FHIRReference `json:"performer,omitempty"` | ||
ResultsInterpreter []*FHIRReference `json:"resultsInterpreter,omitempty"` | ||
Specimen []*FHIRReference `json:"specimen,omitempty"` | ||
Result []*FHIRReference `json:"result,omitempty"` | ||
ImagingStudy []*FHIRReference `json:"imagingStudy,omitempty"` | ||
Media []*DiagnosticReportMedia `json:"media,omitempty"` | ||
Conclusion *string `json:"conclusion,omitempty"` | ||
ConclusionCode []*FHIRCodeableConcept `json:"conclusionCode,omitempty"` | ||
PresentedForm []*FHIRAttachment `json:"presentedForm,omitempty"` | ||
import "github.com/savannahghi/scalarutils" | ||
|
||
// FHIRDiagnosticReport is documented here http://hl7.org/fhir/StructureDefinition/DiagnosticReport | ||
type FHIRDiagnosticReport struct { | ||
ID *string `json:"id,omitempty"` | ||
Meta *FHIRMeta `json:"meta,omitempty"` | ||
ImplicitRules *string `json:"implicitRules,omitempty"` | ||
Language *string `json:"language,omitempty"` | ||
Text *FHIRNarrative `json:"text,omitempty"` | ||
Extension []*Extension `json:"extension,omitempty"` | ||
ModifierExtension []*Extension `json:"modifierExtension,omitempty"` | ||
Identifier []*FHIRIdentifier `json:"identifier,omitempty"` | ||
BasedOn []*FHIRReference `json:"basedOn,omitempty"` | ||
Status DiagnosticReportStatusEnum `json:"status"` | ||
Category []*FHIRCodeableConcept `json:"category,omitempty"` | ||
Code FHIRCodeableConcept `json:"code"` | ||
Subject *FHIRReference `json:"subject,omitempty"` | ||
Encounter *FHIRReference `json:"encounter,omitempty"` | ||
EffectiveDateTime *scalarutils.DateTime `json:"effectiveDateTime,omitempty"` | ||
EffectivePeriod *FHIRPeriod `json:"effectivePeriod,omitempty"` | ||
Issued *string `json:"issued,omitempty"` | ||
Performer []*FHIRReference `json:"performer,omitempty"` | ||
ResultsInterpreter []*FHIRReference `json:"resultsInterpreter,omitempty"` | ||
Specimen []*FHIRReference `json:"specimen,omitempty"` | ||
Result []*FHIRReference `json:"result,omitempty"` | ||
ImagingStudy []*FHIRReference `json:"imagingStudy,omitempty"` | ||
Media []*FHIRDiagnosticReportMedia `json:"media,omitempty"` | ||
Conclusion *string `json:"conclusion,omitempty"` | ||
ConclusionCode []*FHIRCodeableConcept `json:"conclusionCode,omitempty"` | ||
PresentedForm []*FHIRAttachment `json:"presentedForm,omitempty"` | ||
} | ||
|
||
// DiagnosticReportMedia represents the key images associated with this report | ||
type DiagnosticReportMedia struct { | ||
// FHIRDiagnosticReportMedia represents the key images associated with this report | ||
type FHIRDiagnosticReportMedia struct { | ||
ID *string `json:"id,omitempty"` | ||
Extension []*Extension `json:"extension,omitempty"` | ||
ModifierExtension []*Extension `json:"modifierExtension,omitempty"` | ||
Comment *string `json:"comment,omitempty"` | ||
Link *FHIRReference `json:"link"` | ||
} | ||
|
||
// FHIRDiagnosticReportInput is documented here http://hl7.org/fhir/StructureDefinition/DiagnosticReport | ||
type FHIRDiagnosticReportInput struct { | ||
ID *string `json:"id,omitempty"` | ||
Meta *FHIRMetaInput `json:"meta,omitempty"` | ||
ImplicitRules *string `json:"implicitRules,omitempty"` | ||
Language *string `json:"language,omitempty"` | ||
Text *FHIRNarrativeInput `json:"text,omitempty"` | ||
Extension []*FHIRExtension `json:"extension,omitempty"` | ||
ModifierExtension []*FHIRExtension `json:"modifierExtension,omitempty"` | ||
Identifier []*FHIRIdentifierInput `json:"identifier,omitempty"` | ||
BasedOn []*FHIRReferenceInput `json:"basedOn,omitempty"` | ||
Status DiagnosticReportStatusEnum `json:"status"` | ||
Category []*FHIRCodeableConceptInput `json:"category,omitempty"` | ||
Code FHIRCodeableConceptInput `json:"code"` | ||
Subject *FHIRReferenceInput `json:"subject,omitempty"` | ||
Encounter *FHIRReferenceInput `json:"encounter,omitempty"` | ||
EffectiveDateTime *scalarutils.DateTime `json:"effectiveDateTime,omitempty"` | ||
EffectivePeriod *FHIRPeriodInput `json:"effectivePeriod,omitempty"` | ||
Issued *string `json:"issued,omitempty"` | ||
Performer []*FHIRReferenceInput `json:"performer,omitempty"` | ||
ResultsInterpreter []*FHIRReferenceInput `json:"resultsInterpreter,omitempty"` | ||
Specimen []*FHIRReferenceInput `json:"specimen,omitempty"` | ||
Result []*FHIRReferenceInput `json:"result,omitempty"` | ||
ImagingStudy []*FHIRReferenceInput `json:"imagingStudy,omitempty"` | ||
Media []*FHIRDiagnosticReportMediaInput `json:"media,omitempty"` | ||
Conclusion *string `json:"conclusion,omitempty"` | ||
ConclusionCode []*FHIRCodeableConceptInput `json:"conclusionCode,omitempty"` | ||
PresentedForm []*FHIRAttachmentInput `json:"presentedForm,omitempty"` | ||
} | ||
|
||
// FHIRDiagnosticReportMediaInput represents the key images associated with this report | ||
type FHIRDiagnosticReportMediaInput struct { | ||
ID *string `json:"id,omitempty"` | ||
Extension []*FHIRExtension `json:"extension,omitempty"` | ||
ModifierExtension []*FHIRExtension `json:"modifierExtension,omitempty"` | ||
Comment *string `json:"comment,omitempty"` | ||
Link *FHIRReferenceInput `json:"link"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.