Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NOTE that different organizations should use different Patient resources for the same patient! Also the same organization should only use a single Patient resource, even if administering several CarePlans by separate CareTeams. Here "the same organization" means "the same organization Reference" - so different departments of the same hospital may very well have separate Patient resources for the same patient, if they are identified by different Organization References. (Organization Identifiers are generally governed by Sundhedsvæsenets Organisationsregister (SOR).)

Instructions - in the current ("stub") version

...

Code Block
languagejava
titleCreation of a patient (Java) using defined operation using the HAPI FHIR client framework
	    Parameters in = new Parameters();
	    in.addParameter().setName("crn").setValue(new Identifier().setSystem("urn:oid:1.2.208.176.1.2").setValue("2810887020"));
	    in.addParameter().setName("managingOrganization").setValue(new Reference()
	    	    .setIdentifier(new Identifier().setSystem("urn:oid:1.2.208.176.1.1").setValue("260481000016005")"http://inttest.ehealth.sundhed.dk/organization/fhir/Organization/1"));
	    in.addParameter().setName("policy").setValue(new UriType().setValue("https://danskelove.dk/sundhedsloven"));

	    Parameters result = client.operation().onType(Patient.class).named("createPatient")
	    	    .withParameters(in).execute();

...