Creating Patient/Series/Study/Instance IDs?

I am indexing my PACS and want to assign orthanc-like identifiers to studies in the PACS that orthanc is not (currently) managing. Ideally those identifiers would be persistent if I do pull them over into orthanc at some later point. Is orthanc’s algorithm for hashing series/study/instance/patient IDs described anywhere so I could pre-compute them?

Derek-

You may find the relevant information here:
http://book.orthanc-server.com/faq/orthanc-ids.html

Don't hesitate if you need more details.