Beispiel #1
0
func main() {
	registerURL := flag.String("fhirURL", "", "URL for the FHIR server")
	num := flag.Int("n", 100, "Number of patients to generate")
	flag.Parse()
	count := *num
	for i := 0; i < count; i++ {
		resources := ptgen.GeneratePatient()
		upload.UploadResources(resources, *registerURL)
	}
}
Beispiel #2
0
func main() {
	num := flag.Int("n", 100, "Number of patients to generate")
	flag.Parse()
	count := *num
	resources := make([][]interface{}, count)
	for i := 0; i < count; i++ {
		resources[i] = ptgen.GeneratePatient()
	}
	generateReport(resources)
}