These remarks, though not entirely clear, apparently reflected a ruling refusing to afford any consideration on the merits, in the view (urged by appellee’s counsel to us) that there are no instances in which a court has the power to hold interim custody in the Receiving Home to be invalid. Since we do not accept the latter position, at least as presented by counsel, we believe some discussion is appropriate, even though as will appear we have already taken the specific action requested by appellee of authorizing appellant’s transfer elsewhere.
We begin by noting that in general habeas corpus is available not only to an applicant who claims he is entitled to be freed of all restraints, but also to an applicant who protests his confinement in a certain place, or under certain conditions, that he claims vitiate the justification for confinement.4
Turning to the considerations that apply with respect to juveniles in custody under the Juvenile Court Act, we begin by emphasizing that the Juvenile Court legislation rests, in various aspects, on the premise that the state is acting as parens patriae, that it is undertaking in effect to provide for the child the kind of environment he should have been receiving at home, and that it is because of this that the appropriate officials, while subject of course to the requirement that juvenile proceedings must not be arbitrary or unfair, are permitted to take and retain custody of the child without affording him all the various procedural rights available to adults suspected of crime.5
In the “Construction and purpose” section of the Juvenile Court Act, Congress has provided that its provisions
shall be liberally construed so that, with respect to each child coming under the court’s jurisdiction:
(3) when the child is removed from his own family, the court shall secure for him custody, care, and discipline as nearly as possible equivalent to that which should have been given him by his parents. 16 D.C.Code § 2316(3) (Supp. V, 1966).
The Congressional objective comprehends psychiatric care in appropriate cases. See 11 D.C.Code §§ 1551(a) (1) (F) and (G) (Supp. V, 1966), which provides that the Juvenile Court may remove a child from his family if the parent neglects to “provide support and care necessary for his health or welfare” or “neglects or refuses to provide or avail himself of the special care made necessary by his mental condition.”6
The interrelated provisions of the Act, which must be read together, include the command of Congress specifying: “Every officer and department of the District of Columbia is required to render all assistance and co-operation within his or its jurisdictional power which may further the objects of this chapter and subchapter I of chapter 23 of Title 16.” 11 D.C.Code § 1584 (Supp. V, 1966). Congress empowered the Juvenile Court to “cause a child coming under its jurisdiction to be examined by a physician, psychiatrist or psychologist appointed by it.” 16 D.C.Code § 2312 (Supp. V, 1966). It also required the Commissioners to appoint qualified experts whose services are available to the Juvenile Court. 24 D.C.Code § 106 (1961).
4
E. g., Lake v. Cameron, 124 U.S.App.D.C. 264, 364 F.2d 657 (1966) (en banc); Benton v. Reid, 98 U.S.App.D.C. 27, 231 F.2d 780 (1956); Miller v. Overholser, 92 U.S.App.D.C. 110, 206 F.2d 415 (1953); Kautter v. Reid, 183 F.Supp. 352 (D.D.C. 1960) (Youngdahl, J.).
5
See Kent v. United States, 383 U.S. 541, 554-556, 86 S.Ct. 1045, 16 L.Ed.2d 84 (1966); Pee v. United States, 107 U.S.App.D.C. 47, 274 F.2d 556 (1959); Harling v. United States, 111 U.S.App.D.C. 174, 295 F.2d 161 (1961); Harrison v. United States, 123 U.S.App.D.C. 230, 359 F.2d 214 (1965) (en banc).
6
Given the rehabilitative and therapeutic purpose of the Juvenile Court, the child need not suffer from a “mental disease or defect” sufficient to exculpate an adult from criminal responsibility.