Skip to content

Instantly share code, notes, and snippets.

@vinayvenu
Last active March 22, 2023 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinayvenu/eabbb7c376e32f5bf665c7a0b595f524 to your computer and use it in GitHub Desktop.
Save vinayvenu/eabbb7c376e32f5bf665c7a0b595f524 to your computer and use it in GitHub Desktop.
Media Zip download file structure

Generic Structure of the media zip file

Location (Multiple levels if necessary)
	SubjectName
		ProgramName (If present)
			ProgramEncounterName (If present)
				ConceptName (Multiple concepts can be chosen. Also, a concept can have multiple images)

Notes:

  • We will add uuids at places where we expect duplicates
  • When there are multiple images, we append a number (serial, starting from 1)
  • Although the examples below show a single concept, many concepts can be present in the same zip file

Examples

Sample 1 - Registration Concept

Karnataka (Top level location)
	Bengaluru Urban(Next level location)
		Bommanahalli (Last level location)
			Sharma's House-{uuid} (SubjectName-{uuid})
				House Picture-1-{uuid}.jpg (For concept House Picture)
				House Picture-2-{uuid}.jpg
				Ration Card-{uuid}.jpg (For concept Ration Card)

Sample 2 - Program level concept

Karnataka (Top level location)
	Bengaluru Urban(Next level location)
		Bommanahalli (Last level location)
			Sharma's House-{uuid} (SubjectName-{uuid})
				Sanitation-{uuid}} (Program Name-{uuid})
					Toilet Picture-{uuid}.png (Concept)

Sample 3 - Encounter level concept

Karnataka (Top level location)
	Bengaluru Urban(Next level location)
		Bommanahalli (Last level location)
			Sharma's House-{uuid} (SubjectName-{uuid})
				Survey-{uuid} (Encounter-{uuid})
					Road-1234.jpg

Sample 4 - Program Encounter level concept

Karnataka (Top level location)
	Bengaluru Urban(Next level location)
		Sharma's House-{uuid} (SubjectName-{uuid})
			Household (SubjectName)
				Sanitation-{uuid} (Program Name)
					Monthly Visit-{uuid} (Program Name)
						Toilet Picture-{uuid}.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment