if I use the rest create ehr (the post method you linked) I get a new ehrid every time I call it
example
first call:
{‘Vary’: ‘Origin, Access-Control-Request-Method, Access-Control-Request-Headers’, ‘Location’: ‘http://ab24ef12f672:8080/ehrbase/rest/openehr/v1/ehr/66739727-34f5-4a0e-b25b-765875dcb24e’, ‘ETag’: ‘“66739727-34f5-4a0e-b25b-765875dcb24e”’, ‘Last-Modified’: ‘Fri, 02 Jan 1970 10:12:04 GMT’, ‘X-Content-Type-Options’: ‘nosniff’, ‘X-XSS-Protection’: ‘1; mode=block’, ‘Cache-Control’: ‘no-cache, no-store, max-age=0, must-revalidate’, ‘Pragma’: ‘no-cache’, ‘Expires’: ‘0’, ‘X-Frame-Options’: ‘DENY’, ‘Date’: ‘Wed, 07 Oct 2020 10:17:46 GMT’, ‘Keep-Alive’: ‘timeout=60’, ‘Connection’: ‘keep-alive’}
second time:
{‘Vary’: ‘Origin, Access-Control-Request-Method, Access-Control-Request-Headers’, ‘Location’: ‘http://ab24ef12f672:8080/ehrbase/rest/openehr/v1/ehr/15be4e0c-e2f4-4c9b-a9b5-3bf31b11b103’, ‘ETag’: ‘“15be4e0c-e2f4-4c9b-a9b5-3bf31b11b103”’, ‘Last-Modified’: ‘Fri, 02 Jan 1970 10:12:04 GMT’, ‘X-Content-Type-Options’: ‘nosniff’, ‘X-XSS-Protection’: ‘1; mode=block’, ‘Cache-Control’: ‘no-cache, no-store, max-age=0, must-revalidate’, ‘Pragma’: ‘no-cache’, ‘Expires’: ‘0’, ‘X-Frame-Options’: ‘DENY’, ‘Date’: ‘Wed, 07 Oct 2020 10:19:57 GMT’, ‘Keep-Alive’: ‘timeout=60’, ‘Connection’: ‘keep-alive’}
are those alias of the first ehrid*? is it meant to work this way?
*with first ehrid I mean the ehrid I obtained the first time I created an ehr with that specified subject_id and subject_namespace