Documentation
¶
Overview ¶
Package clinical provides zero-dependency Go clinical imaging, orthodontic geometry, and MENA healthcare interoperability algorithms by Eng. Nadeem Mohamed Badr El-Din and NBrain (https://nbra.in).
Core capabilities:
- DICOM Part-10 binary preamble validation and 19-tag HIPAA Safe Harbor PHI scrubbing
- Deterministic IEEE-754 float64 29-landmark lateral cephalometric geometry (SNA, SNB, ANB, FMA, SN-GoGn, IMPA, Wits)
- Saudi CHI NPHIES HL7 FHIR R4 Bundle validation + Saudi National ID/Iqama Luhn verification
- UAE DHA NABIDH / Abu Dhabi DoH Malaffi Emirates ID (784) check-digit validation
Clinical Notice: DICOM metadata scrubbing removes structured header PHI only; burned-in pixel text in (7FE0,0010) requires optical inspection or dedicated pixel redaction before external release.
Entity Home: https://nadeembadr.com/about/ ORCID: https://orcid.org/0009-0005-5836-2631
Index ¶
Constants ¶
const BurnedInPixelWarning = "" /* 174-byte string literal not displayed */
BurnedInPixelWarning documents the clinical boundary of metadata-only DICOM de-identification.
Variables ¶
var SafeHarborPHITags = map[uint32]string{
0x00080020: "StudyDate",
0x00080021: "SeriesDate",
0x00080023: "ContentDate",
0x00080030: "StudyTime",
0x00080050: "AccessionNumber",
0x00080080: "InstitutionName",
0x00080081: "InstitutionAddress",
0x00080090: "ReferringPhysicianName",
0x00081048: "PhysiciansOfRecord",
0x00081070: "OperatorsName",
0x00100010: "PatientName",
0x00100020: "PatientID",
0x00100030: "PatientBirthDate",
0x00100032: "PatientBirthTime",
0x00100040: "PatientSex",
0x00101000: "OtherPatientIDs",
0x00101040: "PatientAddress",
0x00102154: "PatientTelephoneNumbers",
0x00104000: "PatientComments",
}
SafeHarborPHITags enumerates 19 high-risk HIPAA Safe Harbor DICOM (group<<16 | element) tags.
Functions ¶
func ValidateEmiratesID ¶
ValidateEmiratesID validates a UAE Emirates ID (784-YYYY-NNNNNNN-C) used by NABIDH, Malaffi, and Riayati.
func ValidateNPHIESFHIRBundle ¶
ValidateNPHIESFHIRBundle validates structural compliance of a Saudi CHI NPHIES HL7 FHIR R4 message bundle.
func ValidateSaudiNationalID ¶
ValidateSaudiNationalID validates a 10-digit Saudi Citizen (1...) or Iqama (2...) ID with Luhn check.
Types ¶
type CephAnalysis ¶
type CephAnalysis struct {
SNA float64 `json:"sna_deg"`
SNB float64 `json:"snb_deg"`
ANB float64 `json:"anb_deg"`
FMA float64 `json:"fma_deg"`
SNGoGn float64 `json:"sn_gogn_deg"`
IMPA float64 `json:"impa_deg"`
Interincisal float64 `json:"interincisal_deg"`
WitsMM float64 `json:"wits_mm"`
SkeletalClass string `json:"skeletal_class"`
VerticalPattern string `json:"vertical_pattern"`
}
CephAnalysis holds IEEE-754 float64 orthodontic angles (degrees) and linear Wits appraisal (mm).
func AnalyzeCephalogram ¶
func AnalyzeCephalogram(lm map[string]Point2D, mmPerPixel float64) (CephAnalysis, error)
AnalyzeCephalogram computes deterministic Steiner/Tweed/Downs cephalometric angles from landmarks. Required keys: S, N, A, B, Po, Or, Go, Gn, Me, U1_Tip, U1_Apex, L1_Tip, L1_Apex, OP_Post, OP_Ant.
type Point2D ¶
Point2D represents a calibrated 2D cephalometric anatomical landmark coordinate in pixels or mm.
type ScrubResult ¶
ScrubResult summarizes de-identification actions performed on a DICOM Part-10 binary stream.
func ScrubDICOMPart10 ¶
func ScrubDICOMPart10(input []byte) (ScrubResult, error)
ScrubDICOMPart10 validates the Part-10 "DICM" preamble and masks 19 HIPAA Safe Harbor header tags in-place while preserving binary element lengths and leaving PixelData (7FE0,0010) intact.